I have a private key in PEM format, protected by a password (there is also a certificate for the key). Is it possible to import this key into a Java keystore without knowing it's password?
Knowing the password I would do the following:
openssl pkcs12 -export -in cert.pem -inkey key.pem > server.p12
keytool -importkeystore -srckeystore server.p12 -destkeystore server.jks -srcstoretype pkcs12
But I'd like to skip password input and re-use the existing password.