Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block hunMyrte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hunMyrte / Ignore certificate for HttpURLConnection in The following code disables SSL certificate checking for any new instances of HttpsUrlConnection
View Ignore certificate for HttpURLConnection in
* Disables the SSL certificate checking for new instances of {@link HttpsURLConnection} This has been created to
* aid testing on a local box, not for use on production.
* Google has dropped support for Anonymous Diffie Hellman ciphers. So If your server uses, the connection works under Android 6.0.
private static void disableSSLCertificateChecking() {
You can’t perform that action at this time.