title: WebSphere unable to find valid certification path to requested target
body: <p>I've got a WebSphere 9 server for testing web apps on my laptop. I also have Hybris running under Tomcat on my laptop (for testing also). I wrote a Java web app to test punchout functions in Hybris, that runs on my WebSphere server. It had been working, but I had to reinstall WebSphere. Since then, when I try to run my web app in WebSphere, I get this error in WebSphere: </p>
  
  <blockquote>
    <p>javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path
    building failed: java.security.cert.CertPathBuilderException: unable
    to find valid certification path to requested target</p>
  </blockquote>
  
  <p>whenever my app tries to post to Hybris.</p>
  
  <p>In the administrative console of WebSphere, I used the "receive from port" button to get the self-signed certificate from Hybris into the nodedefaultTrustStore in WebSphere. Hybris is at applied.local:9002 on my laptop and the certificate looks like this:</p>
  
  <blockquote>
    <p>CN=applied.local, OU=applied.local, O=applied.local, L=applied.local,
    ST=WI, C=us  Valid from Jul 17, 2019 to Apr 11, 2022.</p>
  </blockquote>
  
  <p>All of this was working previously, but I must have broken something. I must be missing something. I don't understand why it can't "find a valid certification path" to applied.local, since the CN is applied.local, and the certificate is in the trust store in WebSphere.</p>