• No replies
1009 Posts

Pinned topic Servlet (Websphere) will try a SSL Connecten to server - no keystore found

‏2012-12-06T14:53:13Z |

ich wrote a servlet(client) and deployed it to WAS The servlet should establish a SSL connection to a java application (server). Now i reseive an error in SystemOut.log: PKIX path building failed: unable to find valid certification path to requested target

This problem is only in servlet, a test application also written in java works fine. I us an self created certificate and pushed it i a file store.jks. In init()-function:

context.getRealPath("WEB-INF/" + realPathtoTruststore));
System.setProperty("", "secret");
It is impossible to use a own truststore dynamically?

Thanks and regards