Using pinned self-signed SSL certificate with Android Volley

You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “Using pinned self-signed SSL certificate with Android Volley”.

Comments
8 Responses to “Using pinned self-signed SSL certificate with Android Volley”
  1. Iwan says:

    Hi,

    Thank you for the great tutorial.

    I’ve tried to follow your code, but I get the error
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

    The error is returned to my Android application at the onErrorResponse of Volley.

    I still don’t know why.

  2. Dullahan says:

    Hi i’m getting the following error:

    java.io.IOException: Hostname ‘54.201.163.133’ was not verified Cause: java.io.IOException: Hostname ‘54.201.163.133’ was not verified

    Rading says that i need to use a host name verifier but in the examples people use SSLSocketFactory from apache which has something like:

    final SSLSocketFactory sf = CustomSSLSocketFactory.getSSLSocketFactory(context);
    sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);

    How can i accomplish this with your code?

  3. Shreya Kotak says:

    How can I know MYKEYSTORE PASSWOED??

Trackbacks
Check out what others are saying...


Leave A Comment