【问题标题】:SSL certificate installation on Wildfly serverWildfly 服务器上的 SSL 证书安装
【发布时间】:2020-06-08 15:46:48
【问题描述】:

我试图在托管在 aws Ec2 实例中的 Wildfly 应用程序服务器上安装 SSL 证书。 我在 godaddy 购买了 SSL 证书。我从 godaddy 门户下载了 SSL ssl 证书 zip。其中包括以下内容 1 .gd_bundle-g2-g1.crt 2.gdig2.crt.pem 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

keytool -import -alias intermed -keystore wildfly.jks -trustcacerts -file gd_bundle-g2-g1.crt

在wildfly中也做了如下配置 独立的.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 证书无法识别。当我在浏览器中双击证书时,它只有密钥库信息而不是证书信息。 请帮我解决这个问题。

在浏览器证书错误如下

【问题讨论】:

  • 您无法从 CA 获取证书然后创建私钥(和密钥库)。您必须首先创建私钥,然后创建 CSR,然后获取证书,然后导入到已经存在的密钥库——以及叶证书的现有私钥条目。请参阅godaddy.com/help/… 和 neardupe stackoverflow.com/questions/41316340/… 处的说明

标签: ssl wildfly keystore


【解决方案1】:

我认为您的密钥库中需要一个包含所有详细信息的条目。您可能会发现使用 KSE (https://keystore-explorer.org/) 比使用 cli 更容易

【讨论】:

    猜你喜欢
    • 2013-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-15
    • 2021-06-22
    • 2018-03-17
    • 2018-07-20
    • 1970-01-01
    相关资源
    最近更新 更多