- How to ignore invalid and self-signed SSL connection errors with Java?
- How to call https URL from Java without certificate?
How to ignore invalid and self-signed SSL connection errors with Java?
To ignore invalid and self-signed certificate checks on Curl, use the -k or --insecure command-line option. This option allows Curl to perform "insecure" SSL connections and skip SSL certificate checks while you still have SSL-encrypted communications.
How to call https URL from Java without certificate?
URL url = new URL("https://[your server]"); URLConnection con = URL. openConnection(); //SSLException thrown here if server certificate is invalid con. getInputStream();