Hi

I am trying to setup my development emulator to work with self signed 
certificates for SSL.

According to the android.net.SSLCertificateSocketFactory reference page 
this should be achievable by setting socket.relaxsslcheck to yes. I do this 
by passing the prop on emulator start using by calling

./emulator -avd <avd name> -prop socket.relaxsslcheck=true

The property is set correctly, I verified by calling

./adb shell getprop socket.relaxsslcheck

The socket creating still fails with 
exception: java.security.cert.CertPathValidatorException: Trust anchor for 
certification path not found.

Am I misinterpreting the purpose of the property?
Am I using it incorrectly?

Any help and advise would be appreciated. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/android-security-discuss/-/U5pcEhvbsZAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-security-discuss?hl=en.

Reply via email to