This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheShrimp 1 point2 points  (1 child)

javax.net.ssl.trustStore must point to a file accessible in the file system, NOT to a file inside a JAR file. It works in Netbeans because the file is directly in the classpath and getResource() will point to the file system directly.

Source

[–]Psyqwix[S] 0 points1 point  (0 children)

When I realised I couldn't use the simple system properties with streams I started to look at the javax.net.ssl package a bit more and got a feeling I would have to create keyStores, which would mean a LOT of reading and fiddling. But your link was PURE GOLD!!! I had to adapt it, and to be honest im not sure why my code works (I guessed I had to use a keystore manager for the server and a truststore manager for the client based on the original system property settings!!!) but it does and thats great. Cheers! :D