cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

SSL Handshake,HTTPS server .

apatil-2
1-Newbie

SSL Handshake,HTTPS server .

Hi.

I have a code need to be run from shell on prodution server.The production is (https).I tried the code on test server(http) it's working fine.

But on production, I am getting 2014-08-05 16:47:51,215 ERROR [Thread-6] com.ptc.windchill.dpimpl.services.StandardDPServices - 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.

Can any one guide me on this. My class is having RMI invocation.

RemoteMethodServer rms =RemoteMethodServer.getDefault();

rms.setUserName(username);

rms.setPassword(password);

String CLASSNAME = ABC.class.getName();

Class argTypes[] = {};

Object argValues[] = {};

rms.invoke("xyz", CLASSNAME, null, argTypes,argValues);

1 REPLY 1
GaryMansell
6-Contributor
(To:apatil-2)

I suspect that the Java installation on the machine that you are running the code on has certification issues with your Windchill Server's SSL configuration. You may need to import the SSL certificate (if self signed) for the server or the CA (if a proper SSL cert) into the Java Installation's keystore.

Something along these lines:

C:\ptc\java\bin\keytool -import -alias <server name> -file c:\temp\Windchill.cer -trustcacerts -keystore c:\ptc\java\jre\lib\security\cacerts

Top Tags