[correction in bold] But in the playground app source, when creating the SSLContext, it is *NOT* initializing a TrustManager with the truststore.
On Thu, Apr 9, 2015 at 3:21 PM, Tharindu Edirisinghe <[email protected]> wrote: > Hi Hasanthi, > > PKIX path building failed error occurs when the client application cannot > find the public certificate of the Identity Server for creating the SSL > connection. This can happen if the public certificate of the Identity > Server is not available in the client application's trust store. Or else if > the client application is retrieving the truststore path from the java > system property "javax.net.ssl.trustStore" the value may not be set. But in > the playground app source, when creating the SSLContext, it is initializing > a TrustManager with the truststore. So in your case, you can export the > public certificate of Identity Server and import it to the Java JVM cacerts. > > On Thu, Apr 9, 2015 at 1:53 PM, Hasanthi Purnima Dissanayake < > [email protected]> wrote: > >> Hi, >> I need to run sample PlayGround application which is mentioned in [1]. >> When I'm trying to get the access token, I'm getting below exception. >> >> javax.net.ssl.SSLHandshakeException: >> sun.security.validator.ValidatorException: PKIX path building failed: >> sun.security.provider.certpath.SunCertPathBuilderException: unable to find >> valid certification path to requested target >> >> It is highly appreciated if you can provide me a solution for this. >> [1] : https://docs.wso2.com/display/IS500 >> /OpenID+Connect+with+the+WSO2+Identity+Server+and+WSO2+OAuth2+Playground >> >> Thanks and Regards, >> >> Hasanthi Dissanayake >> >> Software Engineer | WSO2 >> >> E: [email protected] <[email protected]> >> M :0718407133| http://wso2.com <http://wso2.com/> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Tharindu Edirisinghe > Software Engineer | WSO2 Inc > Identity Server Team > mobile : +94 775 181586 > -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team mobile : +94 775 181586
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
