DefaultHttpClient로 SSL싸이트 접근하기

|

  1. Grab all required certificates (root and any intermediate CA’s)
  2. Create a keystore with keytool and the BouncyCastle provider and import the certs
  3. Load the keystore in your android app and use it for the secured connections
    • Don’t use the standard java.net.ssl.HttpsURLConnection for the secure connection. Use the Apache HttpClient (Version 4 atm) library, which is already built-in in android. It’s built on top of the java connection libraries and is, in my opinion, faster, better modularized and easier to understand.

대략 번역해보면 
안드로이드sdk에서 keytool이라는 유틸리티로 keystore 파일을 만든후
그것을 res/raw 에다가 넣고 앱에서 쓰는 형식이군요.

자세한 내용은 아래 출처에 있습니다.

출처 : http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certificates/
And