The Artima Developer Community
Sponsored Link

Java Answers Forum
"javax.net.ssl.keyStore" system property inside a jar package

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
will smith

Posts: 1
Nickname: willsmith
Registered: Dec, 2003

"javax.net.ssl.keyStore" system property inside a jar package Posted: Dec 9, 2003 8:30 PM
Reply to this message Reply
Advertisement
I am developing an application that must connect to an http server using ssl (https). During testing without packaging the application as a jar file everything works fine. As I am using the following code to specify the keystore file:

System.setProperty("javax.net.ssl.trustStore", "/absolute/file/location/java/application/keystore");

But when the code gets put into a jar file and tranfered to another machine with a different file system layout... how do I set the system property in a machine independant way?

Please someone help me on this one, as I've been banging my head way too long...

Topic: Jsp protection Previous Topic   Next Topic Topic: help me please

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use