Following exception will be seen in the logs, If the trust is not established
between the WebSphere application server and ECD.
Exception can be thrown due to either of the following reasons :
-> Expired ECD certificate.
Exception :
javax.naming.CommunicationException: simple bind failed: <ecd hostname>:636 [Root 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=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
Resolution for this issue is split into two parts :
1 -> Extracting the renewed ECD certificate from remote server via console.
2 -> Exchanging the extracted signer certificate between the Node and Cell default trust stores.
Extraction of renewed ECD certificate :
Step 1 :
Login to the Admin console of WebSphere application server and navigate to the security -> SSL Certificate and key management tab as shown in the screen shot.Step 2:
Click on manage endpoint security configurations under configuration settings as shown in the following screen shot.
Step 3 :
Click on the outbound -> NodeDefaultSSLSettings.
Step 4 :
From the left hand corner navigate to key stores and certificates as shown in the following screen shot.
Step 5 :
Click on NodeDefaultTrust store.
Step 6 :
Click on the signer certificates tab in the additional properties as shown in the following screen shot.
Step 7 :
Click on Retrieve from port button as shown.
Step 8 :
Fill all the general properties with the hostname and ssl port of ECD and click on retrieve signer information and re validate the information retrieved and click on apply button.
Step to exchange the signers between NodeDefaultKeyStore and NodeDefaultTrustStore will be shown in next blog.
Hi Aparna,
ReplyDeleteExcellent stuff.
I want to configure the "smtp.gmail.com" for WAS. primarily,I have filled out the detials and retrieved the signer information under "Retrieve from port" link in WAS console and after that filled the host and port details in my apps. Unfortunately, "SMTP Config is invalid" error has encountered in apps.
WAS logs :
==============================================
[12/21/12 11:46:13:173 GMT+05:30] 0000006f WSX509TrustMa E CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN "CN=smtp.gmail.com, O=Google Inc, L=Mountain View, ST=California, C=US" was sent from target host:port "null:null". The signer may need to be added to local trust store "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/MACH116Node01Cell/nodes/MACH116Node01/trust.p12" located in SSL configuration alias "NodeDefaultSSLSettings" loaded from SSL configuration file "security.xml". The extended error message from the SSL handshake exception is: "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".
============================================
Can you please suggest me how can i move forward to resolve the same.
Regards,
Heman
Did you try enabling debug mode for ssl and check the logs?
ReplyDeleteYes, I have checked the logs and I found that "NodeDefaultTrustStore" expecting the same signer information, so that I have decided to exchanged the signer certificate from "NodeDefaultKeyStore" to "NodeDefaultTrustStore" with the help of your blog label named "Exchanging the signer certificates".
ReplyDeleteAfterwards SMTP config for "smtp.gmail.com" has been working as expected, Once restarted the server.
Thanks you so much.!!!