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 


3 comments:

  1. Your article was extremely useful. Many thanks. I have been reading about your articles on WCM and have been very useful. Thanks.
    Sendhil, rsendhil@yahoo.co.uk

    ReplyDelete
  2. Excellent Post. Thanks for taking the time to do this.

    ReplyDelete
  3. Thank you. It is an excellent post. It helped me to solve my certificate error.

    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".

    ReplyDelete