Skip to content

Instantly share code, notes, and snippets.

Dwarak Govind Parthiban dwarakgovindp

Block or report user

Report or block dwarakgovindp

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
aembleton / Ignore certificate for HttpURLConnection in
Created Mar 27, 2011
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.
private static void disableSSLCertificateChecking() {
TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
return null;
You can’t perform that action at this time.