# URI Module and self signed SSL cerfiticates

**URL:** <https://forum.ansible.com/t/uri-module-and-self-signed-ssl-cerfiticates/17662>\
**Category:** Ansible Project\
**Created:** [March 4, 2015, 3:38pm UTC](https://forum.ansible.com/t/uri-module-and-self-signed-ssl-cerfiticates/17662 "2015-03-04T15:38:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Mattsson](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jan\_Mattsson](https://forum.ansible.com/u/Jan_Mattsson)\
**Post date:** [March 4, 2015, 3:38pm UTC](https://forum.ansible.com/t/uri-module-and-self-signed-ssl-cerfiticates/17662/1 "2015-03-04T15:38:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Garrett\_Plasky](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Garrett\_Plasky](https://forum.ansible.com/u/Garrett_Plasky)\
**Post date:** [March 4, 2015, 10:44pm UTC](https://forum.ansible.com/t/uri-module-and-self-signed-ssl-cerfiticates/17662/2 "2015-03-04T22:44:28Z")

</div>

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.
