# Specify CA file for httpapi connection plugin

**URL:** <https://forum.ansible.com/t/specify-ca-file-for-httpapi-connection-plugin/37793>\
**Category:** Ansible Developer\
**Created:** [March 21, 2023, 5:43pm UTC](https://forum.ansible.com/t/specify-ca-file-for-httpapi-connection-plugin/37793 "2023-03-21T17:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Dodin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/roman_dodin/32/7150_2.png) [@Roman\_Dodin](https://forum.ansible.com/u/Roman_Dodin)\
**Post date:** [March 21, 2023, 5:43pm UTC](https://forum.ansible.com/t/specify-ca-file-for-httpapi-connection-plugin/37793/1 "2023-03-21T17:43:04Z")

</div>

Hi all,

for an httpapi connection plugin is there a way to specify a path to the ca.pem file to validate client certificate?  
I see options to use\_ssl and ansible\_httpapi\_validate\_certs, but nothing that enables me to set a path to a custom CA file to validate certs.

With curl cacert option does it:

```auto
curl -s --cacert ./clab-srl01/ca/root/root-ca.pem https://...

```

```auto
And with requests it is "verify" - [https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification](https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification)

```

---

<div class="post-metadata">

**Author:** ![Roman\_Dodin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/roman_dodin/32/7150_2.png) [@Roman\_Dodin](https://forum.ansible.com/u/Roman_Dodin)\
**Post date:** [March 21, 2023, 7:51pm UTC](https://forum.ansible.com/t/specify-ca-file-for-httpapi-connection-plugin/37793/2 "2023-03-21T19:51:05Z")

</div>

I got an answer from ansible networking team that this is not currently supported.  
Opened a feature request for this one [https://github.com/ansible-collections/ansible.netcommon/issues/528](https://github.com/ansible-collections/ansible.netcommon/issues/528)
