Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SSL Sockets  RSS feed

 
Hasnain Javed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have an SSL Server running on a specific port ( an SSLServer Socket ). A thread tries to connect to the SSL Server through SSL socket . if I compile and run (manually) both the client and the server using the following command
-Djavax.net.ssl.trustStorePassword=changeit KeySupplierThreads 49238733875757031469947520093949205704676148001284687056573126602014569163677 100209 ( for the client )

java -Djavax.net.ssl.keyStore=server.ks -Djavax.net.ssl.keyStorePassword=jnmarck0 ARUMASSLServer 5000 1 ( for the server ).

respectively, it works fine but if the thread is run (automatically spawned from the programe) with out the above command ( for the client ) it throws an exception that it does not trust the server although the digital certificate and related files are inside the folder. Is there a way to include the above command ( for the client ) in java code so that the thread is invoked with out the above command ( for the cllient ). I hope the question is clear. An early response will be highly appreciated.
Waiting for a favorable reply.
Regards.
Hasnain
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!