Reputation: 659
Tried almost everything and got no success making DefaultHttpClient() to work with expired SSL certificate. Does anybody have some example or something that can help. Android SDK 8
Upvotes: 0
Views: 358
Reputation: 54074
You can use a custom TrustManager
to handle expired SSL certificates.
This post in SO ignore ssl errors in default httpclient has some code to look at, but essentially it accepts all certificates.
Not sure why would you want to accept expired certificates but I would recommend to not do it.
Upvotes: 2