Found a problem. I imported the StartSSL certificate incorrectly in our keystore. In addition, I indicated "weblogic" as an alias in the Weblogic console, which is not a certificate, but a public / private key pair. I use Portecle to edit the keystore.
When I noticed that I was probably using the wrong alias, I changed it to a certificate alias. This led to a Weblogic error:
Inconsistent security configuration, weblogic.management.configuration.ConfigurationException: No identity key/certificate entry was found under alias startssl-hostname in keystore keystore_StartSSL on server servername
In the end, I followed these steps to pack the certificate and private key into one PKCS # 12 key store. Then I imported this key store into our java store using Portecle:
- Export the weblogic public / private key using Portecle as PKCS # 12 key store.
Retrieve the private key from this keystore using openssl:
openssl pkcs12 -in weblogic.p12 -nocerts -out privatekey.pem
Put the certificate and private key as PKCS # 12 key store ( cert.p12 ) using openssl:
openssl pkcs12 -export -in cert.cer -inkey privatekey.pem -out cert.p12 -name cert -CAfile ca.pem -caname root
Import the cert.p12 file into our java repository using Portecle, using "cert" as an alias.
Weblogic configuration has been changed to use the alias "cert" with the correct passphrase.
And it worked!
PS: I added a JCE policy of unlimited strength , since Portecle complained about this at some point.
Steven devijver
source share