我有这样的问题,当我输入一个认证文件到密钥库:的keytool错误:java.lang.Exception的:在回复和密钥库的公共密钥不匹配
keytool error: java.lang.Exception: Public keys in reply and keystore don't match
我这样做此操作:
1)创建我的服务器上的密钥库:
keytool -genkey -keystore C:\keystore\keystore -alias jboss -keyalg RSA
2)我有domain.pfx,并将其转换白衣这个命令:
OpenSSL的PKCS12 -in domain.pfx -clcerts -nokeys -out domain.cer
OpenSSL的PKCS12 -in domain.pfx -nocerts -nodes -out domain_encrypted.key
OpenSSL的RSA -in domain_encrypted.key退房手续domain.key
现在我有3个新的文件:
- domain.cer
- domain_encrypted.key
- domain.key
3)在端部,导入domain.cer到C:\在JBoss别名密钥库\密钥库:
keytool -import -alias jboss -keystore C:\keystore\keystore -file C:\cert\domain.cer
但我有此错误:
keytool error: java.lang.Exception: Public keys in reply and keystore don't match
问题是什么?
你为什么要这么做?您所需要的只是-genkey步骤,一个-certreq步骤,一个CA的CSR签名步骤,然后是一个导入步骤,您根本不需要使用openssl。 – EJP 2014-10-27 11:03:26