Dikobraz
Dikobraz

Reputation: 659

DefaultHttpClient() with expired SSL

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

Answers (1)

Cratylus
Cratylus

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

Related Questions