"hostname in certificate didn't match" caused by using httpclient 4.1.2

294 views
Skip to first unread message

George Lawrence

unread,
Jan 4, 2012, 7:57:01 PM1/4/12
to simp...@googlegroups.com
Hi everyone,

I tried to get a simple hello-world style Java (not Android, just plain old java) app up and running.

I read this... https://github.com/simplegeo/java-simplegeo

I did exactly as recommended, except instead of using httpclient-4.0.jar and httpcore-4.0.jar, I used the latest (4.1.2) instead.

Turns out that with this combo, you get this error message and no simplego api love

hostname in certificate didn't match: <api.simplegeo.com/107.21.98.50> != <api.simplegeo.com>

After much cursing and searching, I realized my mistake... turns out if you drop back down to httpclient 4.1.1 life is good again

Simplego api love now abounds

Anyway, hope this might help someone else.

-- George

Emile Petrone

unread,
Jan 9, 2012, 12:05:05 PM1/9/12
to simp...@googlegroups.com
Awesome thanks George for the post!



-- George

--
SimpleGeo Developer Portal: http://developers.simplegeo.com
API Documentation: http://simplegeo.com/docs
Updates via Twitter: https://twitter.com/SimpleGeoAPI
Change your membership to this group: https://groups.google.com/forum/#!forum/simplegeo



--
Emile Petrone
Engineer
Urban Airship
@emilepetrone


Interested in becoming an Airshipper? 

Reply all
Reply to author
Forward
0 new messages