URI Module and self signed SSL cerfiticates

113 views
Skip to first unread message

Jan Mattsson

unread,
Mar 4, 2015, 10:38:03 AM3/4/15
to ansible...@googlegroups.com
I am trying to connect to an internal web service that uses SSL and self signed certificates

When I try to connect ansible fails, httplib2 gets SSL handshake error with the message "SSL23_GET_SERVER_HELLO:unknown protocol"
connecting to the service from a webbrowser works fine.

any ideas on what I should do to make it work? getting official ssl-certs for the internal systems is not an option.

regards

Jan Mattsson

Garrett Plasky

unread,
Mar 4, 2015, 5:44:29 PM3/4/15
to ansible...@googlegroups.com
IIRC this is a "bug" in older versions of httplib2 whereby the function that handles the SSL transaction does not support the ability to ignore SSL warnings such as self-signed certificates. I believe my "fix" was to upgrade to a newer version of httplib2 via Pip; I was using the distro-provided one previously.

Unless you're totally comfortable just throwing down on the upgrade, let me know which version of httplib2 you're running (I think it was ~0.7 that was affected) and I'll double check.
Reply all
Reply to author
Forward
0 new messages