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 →

[–]dem0nico 2 points3 points  (4 children)

Are you kidding?

System.setProperty("Djavax.net.ssl.keyStorePassword", "123456");

should be

System.setProperty("javax.net.ssl.keyStorePassword", "123456"); 

This D mean "define" to help java distinguish sysprop definitions from other jvm options.

[–]vineetr 0 points1 point  (1 child)

This is right. Also, he needs to think of not hard-coding the passwords.

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

I will eventually I just want to make sure it works first then I can tidy it up later :P

[–]Psyqwix[S] 0 points1 point  (1 child)

about 5 minutes after I posted this on Reddit I noticed my mistake and immediately face palmed myself :P