Step 1 : Import certificates from gmail and add it to your server trust store. Any email server uses two protocols to send/receive messages.
SMTP for sending mails
Open command prompt and cd to openssl_install_folder/bin
Give the below command to view the smtp certificate
openssl s_client -connect smtp.gmail.com:465
Import of the certificate into the JDK with:
<JAVA_HOME>/bin/keytool -import -alias smtp.gmail.com -keystore <JAVA_HOME>/jre/lib/security/cacerts -file <JAVA_HOME>/jre/lib/security/gmail.cer
Comment out the option in the field EXTRA_JAVA_PROPERTIES for the setDomainEnv script to avoid the certificate to be loaded from the DemoTrust
-Djavax.net.ssl.trustStore=${WL_HOME}/server/lib/DemoTrust.jks
No comments:
Post a Comment