Cryptogratphy issue when connecting to a network device
Issue
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/task_executor.py\", line 159, in run\n res = self._execute()\n File \"/usr/local/lib/python3.8/site-packages/ansible/executor/task_executor.py\", line 544, in _execute\n self._connection = self._get_connection(cvars, templar)\n File \"/usr/local/lib/python3.8/site-packages/ansible/executor/task_executor.py\", 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/loader.py\", 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/loader.py\", 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/httpapi.py\", 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/urls.py\", line 115, in <module>\n from urllib3.contrib.pyopenssl import PyOpenSSLContext\n File \"/usr/lib/python3.8/site-packages/urllib3/contrib/pyopenssl.py\", line 46, in <module>\n import OpenSSL.SSL\n File \"/usr/local/lib/python3.8/site-packages/OpenSSL/__init__.py\", line 8, in <module>\n from OpenSSL import crypto, SSL\n File \"/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py\", line 1517, in <module>\n class X509StoreFlags(object):\n File \"/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py\", 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
Environment
- 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.