SSLError("bad handshake: Error([('SSL routines', 'tls process server certificate', 'certificate verify failed')])")

Jmnote (토론 | 기여)님의 2024년 6월 12일 (수) 13:10 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

SSLError("bad handshake: Error([('SSL routines', 'tls process server certificate', 'certificate verify failed')])")

2 문제상황[ | ]

root@wsl:~# pip install python-openstackclient
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/python-openstackclient/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/python-openstackclient/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/python-openstackclient/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/python-openstackclient/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /simple/python-openstackclient/
Could not fetch URL https://pypi.org/simple/python-openstackclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/python-openstackclient/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) - skipping
ERROR: Could not find a version that satisfies the requirement python-openstackclient (from versions: none)
ERROR: No matching distribution found for python-openstackclient

3 조치방법[ | ]

  • pip 재설치

4 실행예시[ | ]

root@wsl:~# pip -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
root@wsl:~# python -V

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3
root@wsl:~# python3 -V
Python 3.8.10
root@wsl:~# python3 get-pip.py
Collecting pip
  Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.0-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 7.5 MB/s eta 0:00:00
DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-24.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@wsl:~# pip install python-openstackclient
-bash: /usr/bin/pip: No such file or directory
root@wsl:~# python -m pip install python-openstackclient

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3
root@wsl:~# python3 -m pip install python-openstackclient
Collecting python-openstackclient
  Downloading python_openstackclient-6.6.0-py3-none-any.whl.metadata (6.5 kB)
Collecting cliff>=3.5.0 (from python-openstackclient)
  Downloading cliff-4.7.0-py3-none-any.whl.metadata (2.1 kB)
Requirement already satisfied: cryptography>=2.7 in /usr/lib/python3/dist-packages (from python-openstackclient) (2.8)
Collecting iso8601>=0.1.11 (from python-openstackclient)
  Downloading iso8601-2.1.0-py3-none-any.whl.metadata (3.7 kB)
Collecting openstacksdk>=2.0.0 (from python-openstackclient)
...
Installing collected packages: wcwidth, requestsexceptions, pytz, pyperclip, typing-extensions, rfc3986, pyparsing, PrettyTable, platformdirs, pbr, packaging, netaddr, msgpack, jmespath, iso8601, importlib-metadata, decorator, debtcollector, cmd2, charset-normalizer, autopage, stevedore, requests, oslo.i18n, os-service-types, oslo.utils, oslo.config, keystoneauth1, dogpile.cache, cliff, python-cinderclient, oslo.serialization, openstacksdk, python-novaclient, python-keystoneclient, osc-lib, python-openstackclient
  Attempting uninstall: importlib-metadata
    Found existing installation: importlib-metadata 1.5.0
    Uninstalling importlib-metadata-1.5.0:
      Successfully uninstalled importlib-metadata-1.5.0
  Attempting uninstall: requests
    Found existing installation: requests 2.22.0
    Uninstalling requests-2.22.0:
      Successfully uninstalled requests-2.22.0
Successfully installed PrettyTable-3.10.0 autopage-0.5.2 charset-normalizer-3.3.2 cliff-4.7.0 cmd2-2.4.3 debtcollector-3.0.0 decorator-5.1.1 dogpile.cache-1.3.3 importlib-metadata-7.1.0 iso8601-2.1.0 jmespath-1.0.1 keystoneauth1-5.6.0 msgpack-1.0.8 netaddr-1.3.0 openstacksdk-3.1.0 os-service-types-1.7.0 osc-lib-3.0.1 oslo.config-9.4.0 oslo.i18n-6.3.0 oslo.serialization-5.4.0 oslo.utils-7.1.0 packaging-24.1 pbr-6.0.0 platformdirs-4.2.2 pyparsing-3.1.2 pyperclip-1.8.2 python-cinderclient-9.5.0 python-keystoneclient-5.4.0 python-novaclient-18.6.0 python-openstackclient-6.6.0 pytz-2024.1 requests-2.32.3 requestsexceptions-1.4.0 rfc3986-2.0.0 stevedore-5.2.0 typing-extensions-4.12.2 wcwidth-0.2.13
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@wsl:~# openstack --version
openstack 6.6.0

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}