Skip to content

Instantly share code, notes, and snippets.

@jpertino
Created January 6, 2011 19:42
Show Gist options
  • Save jpertino/768446 to your computer and use it in GitHub Desktop.
Save jpertino/768446 to your computer and use it in GitHub Desktop.
HttpsURLConnection DefaultSSLSocketFactory TrustManager
javax.net.ssl.SSLContext.getInstance('SSL').with {
init null, [[checkServerTrusted:{chain,authType->}]] as javax.net.ssl.X509TrustManager[], null
javax.net.ssl.HttpsURLConnection.defaultSSLSocketFactory = socketFactory
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment