Jan 112013
 Posted by on January 11, 2013 at 11:15 am FAQ, Oracle/BEA WebLogic, Security, SSL/SecureSocketLayer Tagged with: ,  Add comments

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. 

© Incase of any copyright infringements please check copyrights page for faster resolutions.

Leave a Reply

Show Buttons
Hide Buttons