# uri module and user certificates

**URL:** <https://forum.ansible.com/t/uri-module-and-user-certificates/22783>\
**Category:** Ansible Developer\
**Created:** [October 13, 2016, 2:45am UTC](https://forum.ansible.com/t/uri-module-and-user-certificates/22783 "2016-10-13T02:45:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Tardif](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Christian\_Tardif](https://forum.ansible.com/u/Christian_Tardif)\
**Post date:** [October 13, 2016, 2:45am UTC](https://forum.ansible.com/t/uri-module-and-user-certificates/22783/1 "2016-10-13T02:45:29Z")

</div>

Hi,

I’m trying to access a REST API that specifically requests the use of cert and key as I’d do it with curl:

` `  
curl --cert-type pem --cert mycert.pem --key mykey.pem -k [https://thiswebsite.com/api/v2/endpoint](https://thiswebsite.com/api/v2/endpoint)  
` `  
and it seems that I can’t do it with the uri module, which can be (and is for me) a big showstopper in the uri general use.

Is this something we can expect to see in a near future ? Or maybe it’s already there and I just didn’t see it (where then, there’s a lack in the documentaiton).

Thanks,

Christian Tardif

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 20, 2016, 4:30am UTC](https://forum.ansible.com/t/uri-module-and-user-certificates/22783/2 "2016-10-20T04:30:08Z")

</div>

This is not currently a feature, but you can open an Issue and someone might implement it.

---

<div class="post-metadata">

**Author:** ![willthames](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@willthames](https://forum.ansible.com/u/willthames)\
**Post date:** [October 21, 2016, 7:32am UTC](https://forum.ansible.com/t/uri-module-and-user-certificates/22783/3 "2016-10-21T07:32:29Z")

</div>

Christian,

A second option is that you could implement the feature yourself, and create a pull request, and it will be hopefully be reviewed favourably.
