For Programmers: Free Programming Magazines  


Home > Archive > Java Security > March 2004 > code equivalent for -Djavax.net.ssl.trustStore= ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author code equivalent for -Djavax.net.ssl.trustStore= ?
ineath@purdue.edu

2004-03-19, 8:54 pm

I have a simple client/server set up that uses SSL sockets.
As this is for an in-house demo, I have self-signed certificates.
Currently, the client is run using:

java -Djavax.net.ssl.trustStore=theStore
-Djavax.net.ssl.trustStorePassword=password Client

theStore is simply the exported keytool-generated certificate
that was then imported with keytool

Could anyone point me to code that loads theStore from within
the clinet? I'm having a difficult time getting the
TrustManagerFactory to work (assuming that is the correct
method).

Thanks in advance.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com