private static ClientConnectionManager createBasicClientConnectionManager() {
		BasicClientConnectionManager basicClientConnectionManager = null;

		try {
			SSLContext sslContext = SSLContext.getInstance("SSL");
			sslContext.init(null, new TrustManager[] { new X509TrustManager() {

				@Override
				public X509Certificate[] getAcceptedIssuers() {
					return null;
				}

				@Override
				public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {

				}

				@Override
				public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {

				}
			} }, new SecureRandom());

			SSLSocketFactory sslSocketFactory = new SSLSocketFactory(sslContext);
			Scheme scheme = new Scheme("https", 443, sslSocketFactory);
			SchemeRegistry schemeRegistry = new SchemeRegistry();
			schemeRegistry.register(scheme);

			basicClientConnectionManager = new BasicClientConnectionManager(schemeRegistry);
		} catch (Exception e) {
			e.printStackTrace();
		}

		return basicClientConnectionManager;
	}