秘密鍵を使用してJava6のkeytoolを使用して証明書を生成しようとしていますか?
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.