# Bug in get\_url: https with explicit port fails to validate certificate

**URL:** <https://forum.ansible.com/t/bug-in-get-url-https-with-explicit-port-fails-to-validate-certificate/18164>\
**Category:** Ansible Project\
**Created:** [May 6, 2015, 12:02am UTC](https://forum.ansible.com/t/bug-in-get-url-https-with-explicit-port-fails-to-validate-certificate/18164 "2015-05-06T00:02:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rumen\_Telbizov](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@Rumen\_Telbizov](https://forum.ansible.com/u/Rumen_Telbizov)\
**Post date:** [May 6, 2015, 12:02am UTC](https://forum.ansible.com/t/bug-in-get-url-https-with-explicit-port-fails-to-validate-certificate/18164/1 "2015-05-06T00:02:32Z")

</div>

Hello everyone,

I found a bug in the get\_url module of ansible. It comes down to it failing to verify the SSL certificate when the port is part of the supplied URL (`[https://host:4443/path/to/something](https://host:4443/path/to/something)`).

I filed a github issue and a proposed patch which works for me in [https://github.com/ansible/ansible/issues/10924](https://github.com/ansible/ansible/issues/10924)

Let me know if you need any additional details.

Regards,

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [May 6, 2015, 8:04am UTC](https://forum.ansible.com/t/bug-in-get-url-https-with-explicit-port-fails-to-validate-certificate/18164/2 "2015-05-06T08:04:43Z")

</div>

Replied on the github issue.

Thanks!
