*
I forgot to mention the code that i use to ignore the certificate. Do u have
any ideas to help me out.
final* *static* HostnameVerifier *DO_NOT_VERIFY* = *new* HostnameVerifier()
{
*public* *boolean* verify(String hostname, SSLSession session) {
*return* *true*;
}
};
/**
* Trust every server - *dont* check for any certificate
*/
*private* *static* *void* trustAllHosts() {
// Create a trust manager that does not validate certificate chains
TrustManager[] trustAllCerts = *new* TrustManager[] { *new*X509TrustManager() {
*public* java.security.cert.X509Certificate[] getAcceptedIssuers() {
*return* *new* java.security.cert.X509Certificate[] {};
}
*public* *void* checkClientTrusted(X509Certificate[] chain,
String authType) *throws* CertificateException {
}
*public* *void* checkServerTrusted(X509Certificate[] chain,
String authType) *throws* CertificateException {
}
} };
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
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-developers?hl=en