我使用以下命令生成128位对称密钥AES。
keytool -genseckey -alias myPvtKey -keyalg AES -keysize 128 -storetype jceks -keystore myPvt.jks
将密钥库密码和密钥密码相同。
server:
port: 8080
context-path: /myapp
ssl:
enabled: true
protocol: SSL
enabled-protocol: ssl3
key-store: ${user.home}/myPvt.jks
key-store-password: mypwd
key-password: mypwd
key-store-type: jceks
我尝试使用firefox或chrome @ https://localhost:8080访问我的应用程序,我得到.Chrome也会引发Cipher不匹配。
An error occurred during a connection to localhost:8080. Cannot communicate securely with peer: no common encryption algorithm(s). (Error code: ssl_error_no_cypher_overlap)
我在localhost上运行了sslscan:8080它拒绝了包括AES在内的所有算法。所以不确定接下来该做什么。任何人都可以指导我这个。 谢谢, AM