【发布时间】:2015-07-23 13:15:52
【问题描述】:
我正在使用在 Apache Tomcat 6.0.44 中运行的 Web 应用程序,该应用程序使用 oracle jre1.7u72。 我已按照以下步骤使用自行创建的 CA 签署服务器证书。followed the steps from this link
创建自己的 CA
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
openssl genrsa -des3 -out server.key 4096
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt
deleting the old certificate using keytool command
keytool -list -keystore <path of the keystore file> -alias aliasname -storepass password
importing the newly created server certificate signed by own CA
keytool -importcert -keystore <path of the keystore> -alias alias -storepass password -file server.crt
并获得跟随错误 安全连接失败
连接到 x.x.x.x 时出错。无法与对等方安全通信:没有通用加密算法。 (错误代码:ssl_error_no_cypher_overlap)
【问题讨论】:
-
你的问题是什么?
-
请问为什么会显示这个错误,我在这里/在网站上犯了什么错误?
-
您是如何获得安全连接的?给我们看一些代码。该错误很容易自我解释。
-
粘贴了我已经完成的步骤。我也分享了链接。您期望的代码是什么。请说明针对此错误要采取的措施。
-
您是否使用 Web 浏览器连接到服务器(安装了您创建的证书)?
标签: java openssl x509 keytool ca