public static void allowAllSSL()
	{
		javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier(){
				public boolean verify ( String hostname, SSLSession session) {
				return true;
				}
				});

		javax.net.ssl.SSLContext context=null;

		if(trustManagers == null)
		{
			trustManagers = new javax.net.ssl.TrustManager[]{new _FakeX509TrustManager()};
		}

		try
		{
			context = javax.net.ssl.SSLContext.getInstance("TLS");
			context.init(null, trustManagers, new SecureRandom());
		}
		catch (Exception e)
		{
			errorExit("Setting relaxed SSL settings failed: " + e);
		}

		javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
	}