SHA2 변경 이슈

Android 2015. 6. 12. 11:23

# 서버 인증 보안이 SHA-1 에서 SHA-2로 변경된 후로 앱에서 로그인 처리가 안되고 null 리턴.

# Exception message -  android Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.


@ 2.3 이후 버전에 sha2를 지원한다고 되어있는데... 왜 안되지..

@ 인증서에 따라 안드로이드나 ios 지원이 안될수도 있다?


https://developer.android.com/training/articles/security-ssl.html



# 임시 해결

- HttpsURLConnection 클래스를 이용해서 강제 trust 하도록 처리

- 보안에 취약하다. 수정 필요.


http://blog.saltfactory.net/android/using-https-on-android.html




: