我试图在wildfly应用服务器上安装SSL证书,该服务器托管在aws Ec2实例中。我在godaddy中购买了SSL证书。我从godaddy门户网站下载了SSL证书压缩包。它由以下1.gd_ .gdig2.crt.pem -g2-g1.crt 2捆绑包3.70c350d31695.crt 4.70c350d31695.pem组成
使用以下命令创建密钥库并将证书导入密钥库
keytool -genkey -alias wildfly -keyalg RSA -keystore wildfly.jks
keytool -import -alias root -keystore wildfly.jks -trustcacerts -file 70c350d31695.crt
密钥工具捆绑包中间-keystore wildfly.jks -trustcacerts -file gd_ -import -g2-g1.crt
还在wildfly中完成了如下配置: standalone.xml
<security-realm`enter code here` name="SslRealm">
<server-identities>
<ssl>
<keystore path="/home/centos/ssl/newssl/wildfly.jks" alias="wildfly" keystore-password="OHGv216TZDhbd" />
</ssl>
</server-identities>
</security-realm>
and
<https-listener name="default-ssl" socket-binding="https" security-realm="SslRealm"/>
但在重新启动应用程序后,密钥库被识别,但https证书不被识别。当我在browesr中双击证书时,它只有密钥库信息,没有证书信息。请帮我解决这个问题。
在浏览器中出现如下证书错误
发布于 2020-02-25 19:13:57
我认为您的keystore中需要一个包含所有详细信息的条目。您可能会发现使用KSE (https://keystore-explorer.org/)比使用cli更容易
https://stackoverflow.com/questions/60385647
复制相似问题