Make a connection to a HTTPS server from Java and ignore the validity of the security certificate

Posted by justinhj on Stack Overflow See other posts from Stack Overflow or by justinhj
Published on 2010-05-02T02:38:59Z Indexed on 2010/05/02 2:47 UTC
Read the original article Hit count: 320

Filed under:
|
|
|

I've been testing some that works with a bunch of https servers with different keys, some of which are invalid and all of them are not in the local key store for my JVM. I am really only testing things out, so I don't care about the security at this stage. Is there a good way to make POST calls to the server and tell Java not to worry about the security certificates?

My google searches for this have brought up some code examples that make a class to do the validation, that always works, but I cannot get it to connect to any of the servers.

© Stack Overflow or respective owner

Related posts about java

Related posts about ssl