# pyOpenSSL is in Python path but Ansible does not see it (Openssl\_certificate module)

**URL:** <https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651>\
**Category:** Ansible Project\
**Created:** [February 3, 2018, 1:16am UTC](https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651 "2018-02-03T01:16:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Bubb](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Michael\_Bubb](https://forum.ansible.com/u/Michael_Bubb)\
**Post date:** [February 3, 2018, 1:16am UTC](https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651/1 "2018-02-03T01:16:37Z")

</div>

When trying to run the Openssl\_certificate module with provider=assertonly I am getting

“The python pyOpenSSL library is required”

but it looks like that is available to Python:

python -m OpenSSL.debug  
`

pyOpenSSL: 17.5.0  
cryptography: 2.1.4  
cffi: 1.11.4  
cryptography’s compiled against OpenSSL: OpenSSL 1.1.0g 2 Nov 2017  
cryptography’s linked OpenSSL: OpenSSL 1.1.0g 2 Nov 2017  
Pythons’s OpenSSL: OpenSSL 1.0.1e-fips 11 Feb 2013  
Python executable: /bin/python  
Python version: 2.7.5 (default, Aug 4 2017, 00:39:18)  
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]  
Platform: linux2  
sys.path: [‘’, ‘/usr/lib64/python27.zip’, ‘/usr/lib64/python2.7’, ‘/usr/lib64/python2.7/plat-linux2’, ‘/usr/lib64/python2.7/lib-tk’, ‘/usr/lib64/python2.7/lib-old’, ‘/usr/lib64/python2.7/lib-dynload’, ‘/usr/lib64/python2.7/site-packages’, ‘/usr/lib/python2.7/site-packages’]  
`

my ansible version:

`ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]`

Do I need to add somethign to Ansible config?

thank you

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [February 4, 2018, 8:04am UTC](https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651/2 "2018-02-04T08:04:29Z")

</div>

I guess you are running this on the remote host and not localhost so you need to install the requirement on the remote host.
