AXIS with SSL truststore -


hi m trying make standalone client https server on tomcat. when i'm doing:

system.setproperty("javax.net.ssl.truststore","f:\\truststore.jks"); system.setproperty("javax.net.ssl.truststorepassword","abc"); 

it working fine. don't want change @ system level. tried doing:

handler handler = new httpsender(); handler.setoption("truststore", "f:\\truststore.jks"); handler.setoption("truststorepassword", "abc"); simpletargetedchain stc = new simpletargetedchain(handler); config.deploytransport("http", stc); 

it not working, throwing exception :

javax.net.ssl.sslhandshakeexception: sun.security.validator.validatorexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable find valid certification path requested target

what can problem?


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -