
Troubleshooting: CertPathValidatorException error in WebSphere Commerce Developer
You notice that in the WebSphere Commerce Developer environment, your store or
administrative tools do not work, and you encounter a CertPathValidatorException
error.
The log files might include errors that resemble the following
message
[ERROR ] CWPKI0312E: The certificate with subject DN CN=localhost, OU=localhost, OU=localhost, O=IBM, C=US
has an end date 11/16/16 2:53 PM which is no longer valid.
[err] javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path validation failed:
java.security.cert.CertPathValidatorException: The certificate expired at Wed Nov 16 14:53:21 EST 2016;
internal cause is: java.security.cert.CertificateExpiredException: NotAfter: Wed Nov 16 14:53:21 EST 2016
Note: The following solution renews the certificate for 1 year from the date of renewal.
Problem
The issue occurs due to WebSphere Commerce certificates that were set to expire on November 16, 2016.Solution
Renew the WebSphere Commerce Developer workspace certificates.- Start the WebSphere Commerce Test server. (WCDE_installdir/bin/startWCserver.bat)
- Open the WebSphere Application Server Administrative Console by opening a Web browser and
entering the following
URL:
orhttp://hostname:port/ibm/console
The default port for the WebSphere Application Server Administrative Console depends on the protocol that you specify in the URL and the port number assigned when the profile was created. For the HTTP protocol, the default port ishttps://hostname:port/ibm/console
9060
. For the HTTPS protocol, the default port is9043
. - Renew the certificate. For more information about how to renew, see the following WebSphere Application Server documentation Renewing a certificate in SSL.
- Restart the WebSphere Commerce server.