Importing SSL certificate into websphere portal trust store


Was working on the application where I had to use the gmail smtp and ran into the following certificate error while testing.



[12/12/12 18:16:00:945 EST] 00000041 SystemErr     R org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
               javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
               java.security.cert.CertPathValidatorException: The certificate issued by OU=Equifax Secure Certificate Authority, O=Equifax, C=US is not trusted; internal cause is:
               java.security.cert.CertPathValidatorException: Certificate chaining error. Failed messages: javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
               javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
               java.security.cert.CertPathValidatorException: The certificate issued by OU=Equifax Secure Certificate Authority, O=Equifax, C=US is not trusted; internal cause is:
               java.security.cert.CertPathValidatorException: Certificate chaining error; message exception



 By looking at the error, it is clear that is problem with SSL security certificate , Came accross the simple way to import the certificate into websphere portal