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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

SSL Handshake,HTTPS server .

apatil-2
12-Amethyst

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

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

Announcements
Top Tags