Continue on to read what I did to create a private key, create a certificate request (CSR), and configure WebLogic to enable the SSL port for OBIEE.
- Log into the server you want to setup SSL on with Putty and run the following commands:
- openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out <serverhost>.key 2048
- Replace file1, file2, etc with random files on the server.
- Set passphrase to: welcome1 (or any value you like)
- openssl req -new -key <serverhost>.key -out <serverhost>.csr
- Enter passphrase: welcome1
- Answers to the Questions:
- Country Name (2 letter code) [GB]: US
- State or Province Name (full name) [Berkshire]: California
- Locality Name (eg, city) [Newbury]: Sacramento
- Organization Name (eg, company) [My Company Ltd]: My Corp
- Organizational Unit Name (eg, section) []: OBIEE
- Common Name (eg, your name or your server's hostname) []:<serverhost>.blah.com
- Email Address []: something@aol.com
- Please enter the following 'extra' attributes to be sent with your certificate request
- A challenge password []: welcome1
- An optional company name []: My Corp
- Send your CSR to whomever creates certificates for your company. They will return to you a CRT file. This, along with the key you created earlier, will be used to create a java keystore which is what you will configure in WebLogic.
- Back in Putty, enter the following commands:
- cd <OBIEE_HOME>/wlserver_10.3/server/lib
- openssl pkcs12 -export -in ~/path/to/<serverhost>.cer -inkey ~/path/to/<serverhost>.key > ~/path/to/<serverhost>.p12
- Enter the following for the passphrase and export password: welcome1
- <OBIEE_HOME>/Oracle_BI1/jdk/bin/keytool -importkeystore -srckeystore ~/path/to/<serverhost>.p12 -destkeystore <serverhost>Trust.jks -srcstoretype pkcs12
- Enter the following for the destination keystore password: mykeystore
- Enter the following for the source keystore password: welcome1
- Log into Weblogic Console
- http://<serverhost>:7001/console
- Navigate to Environment->Servers->bi_server1
- Click the Lock and Edit button.
- Check the SSL Listen Port Enabled box.
- Set the port to 9804.
- Click Save.
- Click on the tab for Keystores
- Click the Change button next to Demo Identity and Demo Trust
- Select Custom Identity and Java Standard Trust
- Click Save.
- For Custom Identity Keystore enter:
- <OBIEE_HOME>/wlserver_10.3/server/lib/<serverhost>Trust.jks
- For Custom Identity Keystore Type enter:
- jks
- For Custom Identity Keystore Passphrase and Confirm Custom Identity Keystore Passphrase enter:
- mykeystore
- For Java Standard Trust Keystore Passphrase and Confirm Java Standard Trust Keystore Passphrase enter:
- changeit
- NOTE: This is the default password for the Java Standard Trust Keystore. If you have changed it, which you should, update this passphrase to your new Java Standard Trust Keystore password.
- Click Save.
- Click the SSL tab.
- For Private Key Alias enter
- 1
- For Private Key Passphrase and Confirm Private Key Passphrase enter:
- welcome1
- Click Save.
- Click Activate Changes.
- The process will take a few moments, but will let you know once it has completed.
- Now go back to Putty to restart all services (Weblogic, EM, AdminServer, etc).
You should now be able to connect to https://<serverhost>:9804/analytics
SSL Websites for reference
- http://slacksite.com/apache/certificate.php
- http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
- http://www.sslshopper.com/article-most-common-openssl-commands.html
No comments:
Post a Comment