Import certificate into java keystore | Weblogic

Oracle Weblogic Server

Generate a RSA private key using OpenSSL tools:

D:\myToolsSSL\OpenSSL\bin> genrsa -aes256 -out private.pem 2048

To view the content of the key.pem:

D:\myToolsSSL\OpenSSL\bin> rsa -noout -text -in private.pem

Create a Certificate Signing Request (CSR) with the RSA private key.

D:\myToolsSSL\OpenSSL\bin> openssl req -new -key private.pem -out req.pem

Now create a self signed certificate which means no Root Certificate Authority has signed this certificate:

D:\myToolsSSL\OpenSSL\bin> openssl req -x509 -key private.pem -in req.pem -out cert.pem -days 365

Using the PCKS 12 command bundle both the cert as well as the private key

pkcs12 -export -in cert.pem -inkey private.pem -out bundle.p12

With the help of the keytool command, import the bundled p12 file into the keystore.

keytool -importkeystore -deststorepass password -destkeypass password -destkeystore mykeystore.jks -srckeystore bundle.p12 -srcstoretype PKCS12 -srcstorepass password -alias private

Now Configure WebLogc Server with the keystore and check whether the server is listening on HTTPS, T3s, LDAPs. Sample steps for configuring SSL on WL can be checked here.

http://docs.oracle.com/cd/E13222_01/wls/docs81/secmanage/ssl.html

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.