• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps valid ssl throwing an 'expired ssl' error using http client. workaround?

jfisher446

Lurker
Feb 5, 2010
1
0
I'm trying to connect to a website via httpclient and it keeps throwing an error that says the SSL certificate is not trusted/expired. This happens in the emulator dev environment and on the phone when I visit the site in a browser.

I can't find any way to work around this but I've seen some information saying that I need to create a fake TrustManager and then basically pass a fake certificate to me httpclient to make it think the site's is valid.

Anyone have any other suggestions to work around this thing or some detailed information on how I can get the TrustManager thing working as it should as I simply can't figure it out.

Thanks,
John
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones