# CERTIFICATE\_VERIFY\_FAILED error for snow\_record module

**URL:** <https://forum.ansible.com/t/certificate-verify-failed-error-for-snow-record-module/34901>\
**Category:** Ansible Developer\
**Created:** [April 1, 2021, 10:02am UTC](https://forum.ansible.com/t/certificate-verify-failed-error-for-snow-record-module/34901 "2021-04-01T10:02:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagadish\_Raj](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@Jagadish\_Raj](https://forum.ansible.com/u/Jagadish_Raj)\
**Post date:** [April 1, 2021, 10:02am UTC](https://forum.ansible.com/t/certificate-verify-failed-error-for-snow-record-module/34901/1 "2021-04-01T10:02:36Z")

</div>

Dear all,

I am trying to upload an attachment to a ServiceNow record, but I am stuck with the error shown below.

_fatal: [localhost]: FAILED! =\> {“attachment”: “\*\*\*/abc.txt”, “changed”: false, “display\_value”: false, “exclude\_reference\_link”: false, “host”: " [dxxxxxx.service-now.com](http://dxxxxxx.service-now.com) ", “instance”: null, “lookup\_field”: “number”, “msg”: “Failed to update record: HTTPSConnectionPool(host=‘[dxxxxxx.service-now.com](http://dxxxxxx.service-now.com)’, port=443): Max retries exceeded with url: /api/now/table/incident?sysparm\_query=number%3DINC0010002&sysparm\_limit=10000&sysparm\_offset=0&sysparm\_display\_value=False&sysparm\_suppress\_pagination\_header=False&sysparm\_exclude\_reference\_link=False&sysparm\_view=&sysparm\_fields= (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed (\_ssl.c:877)’),))”, “number”: “INC0010002”, “suppress\_pagination\_header”: false, “table”: “incident”}_

Additional details:  
_ansible 2.9.15_  
_config file = /etc/ansible/ansible.cfg_  
_ansible python module location = /usr/lib/python2.7/site-packages/ansible_  
_executable location = /usr/bin/ansible_  
_python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]_

Environment variable set:  
_REQUESTS\_CA\_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt_

I have added all CA certs for ServiceNow URL in above ca-bundle.crt.

I would like to know if I missed anything. I saw someone faced similar issue from Ansible-Project community but no fix was provided. Appreciate if anyone can help or direct me on this issue.  
Code i used is given below.
