我正在尝试生成一个带有私钥的java 6密钥工具的证书,有帮助吗?
1. Generate private key, public key and keystore to store the keys.
/usr/local/packages/jdk16/bin/keytool -genkeypair -keyalg RSA -validity 300 -alias sslcert -keystore weblogic.jks
2. Create self signed certificate
/usr/local/packages/jdk16/bin/keytool -selfcert -keyalg RSA -alias sslcert -keystore weblogic.jks
3. Export the self signed certificate to a file
$ `/usr/local/packages/jdk16/bin/keytool -export -alias sslcert -rfc -file ohs.crt -keystore weblogic.jks`
Enter keystore password:
Certificate stored in file <ohs.crt>当我试图导入这个证书时,上面写着
Error in installing the server certificate.
No private key found.发布于 2013-10-02 06:01:32
导出的证书不包含私钥。私钥保留在密钥存储库中。你似乎在用一种长时间的方法复制密钥存储库.只需将密钥存储复制到服务器即可。实际上,它应该已经在服务器上了,否则您就有泄漏私钥的风险。
https://stackoverflow.com/questions/15571815
复制相似问题