diff --git a/changelogs/fragments/67901-get_certificate-fix-cryptography.yml b/changelogs/fragments/67901-get_certificate-fix-cryptography.yml new file mode 100644 index 00000000000..09f4c56a818 --- /dev/null +++ b/changelogs/fragments/67901-get_certificate-fix-cryptography.yml @@ -0,0 +1,2 @@ +bugfixes: +- get_certificate - Fix cryptography backend when pyopenssl is unavailable (https://github.com/ansible/ansible/issues/67900) diff --git a/lib/ansible/modules/crypto/get_certificate.py b/lib/ansible/modules/crypto/get_certificate.py index 3aed838d681..29b5c7ff01c 100644 --- a/lib/ansible/modules/crypto/get_certificate.py +++ b/lib/ansible/modules/crypto/get_certificate.py @@ -258,9 +258,6 @@ def main(): changed=False, ) - if not PYOPENSSL_FOUND: - module.fail_json(msg=missing_required_lib('pyOpenSSL >= 0.15'), exception=PYOPENSSL_IMP_ERR) - if timeout: setdefaulttimeout(timeout)