¡@

Home 

2014/10/16 ¤W¤È 08:12:54

android Programming Glossary: easysslsocketfactory

Self Signed SSL acceptance Android

http://stackoverflow.com/questions/1217141/self-signed-ssl-acceptance-android

new Scheme http PlainSocketFactory.getSocketFactory 80 https scheme schemeRegistry.register new Scheme https new EasySSLSocketFactory 443 HttpParams params new BasicHttpParams params.setParameter ConnManagerPNames.MAX_TOTAL_CONNECTIONS 30 params.setParameter.. params HttpVersion.HTTP_1_1 ClientConnectionManager cm new ThreadSafeClientConnManager params schemeRegistry The EasySSLSocketFactory is here and the EasyX509TrustManager is here . The code for exchangeIt is open source and hosted on googlecode here if you..

Apache HttpClient on Android producing CertPathValidatorException (IssuerName != SubjectName)

http://stackoverflow.com/questions/4115101/apache-httpclient-on-android-producing-certpathvalidatorexception-issuername

2010 06 android and self signed ssl certificates the excellent answer from bdc above easily googled source code for EasySSLSocketFactory and EasyX509TrustManager would provide a link if I wasn't prevented first time answering I managed to achieve a secure connection.. public X509Certificate getAcceptedIssuers return this.standardTrustManager.getAcceptedIssuers EasySSLSocketFactory package com.trustit.trustme import java.io.IOException import java.net.InetAddress import java.net.InetSocketAddress import.. import org.apache.http.params.HttpConnectionParams import org.apache.http.params.HttpParams public class EasySSLSocketFactory implements SocketFactory LayeredSocketFactory private SSLContext sslcontext null private static SSLContext createEasySSLContext..