I have a java class that is constructing a httpsUrlConnection, where I define system properties for the keystore, truststore and their associated password. I also have a system property for the javax.net.debug that is set to “all”.
When I run the class from the Windchill shell, I am able to successfully launch the URL, and make the SSL Handshake and see the javax.net.debug output. When I run the class within the MethodServer, it appears that I am not able to read the keystore, and I do not get any debugging statements to appear and the SSL handshake fails because I cannot present my certificate.
What is interesting is that I did have the Method Server spilling the debug at one time, but based on editing the class and/or changing the keystores, I am no longer able to get any output from the debug.
I have verified that my system properties are set within the Method Server, and my keystore paths and passwords are correct.
Does anyone have any input related to why the class behaves within the Windchill shell, and not within the Method Server context?