Import a CA-Issued SSL Certificate into the Oracle SOA Suite on Marketplace Instance
The first step is to import the CA-issued SSL certificate into the trust store being used in your server.
- Log in to the Adminstration Server node as an
oracleuser. - Run an
opensslcommand for the yahoo mail server:Mail Server Command Used Yahoo
openssl s_client -connect smtp.mail.yahoo.com:465 > yahoocert.pemOffice 365
openssl s_client -showcerts -starttls smtp -crlf -connect smtp.office365.com:587Microsoft Outlook
openssl s_client -showcerts -starttls smtp -connect smtp-mail.outlook.com:587Gmail
openssl s_client -connect smtp.gmail.com:465 > gmail-smtp-cert.pem - Make a copy of
yahoocert.pemfile. For example,cp yahoocert.pem yahoo.cer.- Run the following command:
Vi yahoo.cerThe certificate is displayed. - Keep only the certificate from BEGIN CERTIFICATE entry till END CERTIFICATE entry and remove all the unwanted lines to create the yahoo certificate.
Note:
In the case of Office 365, two certificates are presented. Run the following command to display the certificates:
openssl s_client -showcerts -connect smtp.office365.com:587 -starttls smtp </dev/nullSave both the certificates as individual
.cerfiles and import them to the keystore. - Run the following command:
- Add the certificate to the trust store being used in your Administration Server. By default the trust store used is Demotrust.jks. Use the following command to add the certificate created in the previous step to Demotrust.jks:
keytool -import -alias smtp.yahoo.com -keystore /u01/app/oracle/middleware/wlserver/server/lib/DemoTrust.jks -file yahoo.cer -storepass DemoTrustKeyStorePassPhrase - Stop and then restart the Administration Server and Managed Servers. See Stop or Start WebLogic Servers.