# Error saying CustomHTTPSConnection object has no attribute cert\_file

**URL:** <https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390>\
**Category:** Get Help\
**Tags:** ubuntu\
**Created:** [July 22, 2024, 7:47am UTC](https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390 "2024-07-22T07:47:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kladizkov](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kladizkov](https://forum.ansible.com/u/kladizkov)\
**Post date:** [July 22, 2024, 7:47am UTC](https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390/1 "2024-07-22T07:47:26Z")

</div>

On Ubuntu 24 hosts, I have been getting this error whenever a file needs to be downloaded over HTTPS.

```auto
An unknown error occurred: 'CustomHTTPSConnection' object has no attribute 'cert_file'

```

The playbook works fine on Ubuntu 22 though.

This is the ansible version details that I use.

```auto
# ansible --version
ansible [core 2.12.10]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Mar 25 2024, 10:42:49) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True

```

---

<div class="post-metadata">

**Author:** ![Wenzel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wenzel/32/4274_2.png) [@Wenzel](https://forum.ansible.com/u/Wenzel)\
**Post date:** [July 22, 2024, 6:43pm UTC](https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390/2 "2024-07-22T18:43:36Z")

</div>

Hi,

Facing the same issue here, I haven’t found a solution yet !

---

<div class="post-metadata">

**Author:** ![flowerysong](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/flowerysong/32/2305_2.png) [@flowerysong](https://forum.ansible.com/u/flowerysong)\
**Post date:** [July 22, 2024, 7:11pm UTC](https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390/3 "2024-07-22T19:11:23Z")

</div>

ansible-core 2.12 is EOL, and does not support Python 3.12. See [Releases and maintenance — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [August 21, 2024, 7:12pm UTC](https://forum.ansible.com/t/error-saying-customhttpsconnection-object-has-no-attribute-cert-file/7390/4 "2024-08-21T19:12:06Z")

</div>

Closed on August 21, 2024, 7:12pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
