Cryptogratphy issue when connecting to a network device

Solution Verified - Updated -


Unable to connect to a network device as it throws below exception while trying to connect via Ansible playbook:

Traceback (most recent call last):\n  File \"/usr/local/lib/python3.8/site-packages/ansible/executor/\", line 159, in run\n    res = self._execute()\n  File \"/usr/local/lib/python3.8/site-packages/ansible/executor/\", line 544, in _execute\n    self._connection = self._get_connection(cvars, templar)\n  File \"/usr/local/lib/python3.8/site-packages/ansible/executor/\", line 938, in _get_connection\n    connection, plugin_load_context = self._shared_loader_obj.connection_loader.get_with_context(\n  File \"/usr/local/lib/python3.8/site-packages/ansible/plugins/\", line 840, in get_with_context\n    self._module_cache[path] = self._load_module_source(name, path)\n  File \"/usr/local/lib/python3.8/site-packages/ansible/plugins/\", line 804, in _load_module_source\n    spec.loader.exec_module(module)\n  File \"<frozen importlib._bootstrap_external>\", line 843, in exec_module\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n  File \"/usr/share/ansible/collections/ansible_collections/ansible/netcommon/plugins/connection/\", line 146, in <module>\n    from ansible.module_utils.urls import open_url\n  File \"/usr/local/lib/python3.8/site-packages/ansible/module_utils/\", line 115, in <module>\n    from urllib3.contrib.pyopenssl import PyOpenSSLContext\n  File \"/usr/lib/python3.8/site-packages/urllib3/contrib/\", line 46, in <module>\n    import OpenSSL.SSL\n  File \"/usr/local/lib/python3.8/site-packages/OpenSSL/\", line 8, in <module>\n    from OpenSSL import crypto, SSL\n  File \"/usr/local/lib/python3.8/site-packages/OpenSSL/\", line 1517, in <module>\n    class X509StoreFlags(object):\n  File \"/usr/local/lib/python3.8/site-packages/OpenSSL/\", line 1537, in X509StoreFlags\n    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK\nAttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK


  • Red Hat Ansible Automation Platform 2.2
  • openssl;1:1.1.1k-9.el8_7;x86_64;ubi-8-baseos

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content