Skip to content

Instantly share code, notes, and snippets.

View StefanLobbenmeier's full-sized avatar

Stefan Lobbenmeier StefanLobbenmeier

  • Germany, Essen
  • 23:24 (UTC +02:00)
View GitHub Profile
@divergentdave
divergentdave / Example.java
Last active April 26, 2022 08:13
Ignoring Expired TLS Certificates in Java
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;