Skip to main content
Omnitracs Knowledge Base

Add SSL for Non-certified SSL Keys

If you are sending web service requests to https://services.omnitracs.com please skip this step because this address has a certified SSL certificate.

When trying to call a web service over SSL with a non-certified SSL Key, you must insert some system property java code for the web service to work properly. The following code does not need to be inserted if the SSL Key is certified.  The following code must be placed before the call to the web service.

System.setProperty("javax.net.ssl.keyStore","C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v6/profiles/TerraAppSvr/etc/DummyServerKeyFile.jks");

System.setProperty("javax.net.ssl.trustStore","C:/Program Files/IBM/Rational/SDP/6.0/runtimes/base_v6/profiles/TerraAppSvr/etc/DummyServerTrustFile.jks");

System.setProperty("javax.net.ssl.keyStorePassword""WebAS");

System.setProperty("javax.net.ssl.trustStorePassword""WebAS");

System.setProperty("java.protocol.handler.pkgs""com.ibm.net.ssl.internal.www.protocol");

Security.addProvider(new com.ibm.jsse.IBMJSSEProvider());

The location of the keyStore and trustStore must be specified for the WebSphere Application Server you are running the web service on along with the password for the keyStore and trustStore.

(plus) Calling the Web Service

  • Was this article helpful?