Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate problem with installation #746

Open
gnevan opened this issue Mar 19, 2024 · 0 comments
Open

Certificate problem with installation #746

gnevan opened this issue Mar 19, 2024 · 0 comments

Comments

@gnevan
Copy link

gnevan commented Mar 19, 2024

Could neither install throuh pip nor download the package due to an SSL certificate error.

C:\Python38>python -m pip install pyserial
Collecting pyserial
Obtaining dependency information for pyserial from https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl.metadata
WARNING: Certificate did not match expected hostname: files.pythonhosted.org. Certificate: {'subject': ((('commonName', 'm.sni-311-default.ssl.fastly.net'),),), 'issuer': ((('countryName', 'US'),), (('organizati
onName', 'Certainly'),), (('commonName', 'Certainly Intermediate R1'),)), 'version': 3, 'serialNumber': '76C5193E8CD21E0903389FD0A0EB9342160F', 'notBefore': 'Mar 13 18:54:12 2024 GMT', 'notAfter': 'Apr 12 18:54:11
2024 GMT', 'subjectAltName': (('DNS', 'm.sni-311-default.ssl.fastly.net'),), 'OCSP': ('http://ocsp.int-r1.certainly.com',), 'caIssuers': ('http://int-r1.certainly.com',)}
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(CertificateError("hostname 'files.pythonhosted.org' doesn't match 'm.sni-311-default.s
sl.fastly.net'"))': /packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl.metadata
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d1
86f96f558/pyserial-3.5-py2.py3-none-any.whl.metadata (Caused by SSLError(CertificateError("hostname 'files.pythonhosted.org' doesn't match 'm.sni-311-default.ssl.fastly.net'")))

https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl

Requested host does not match any Subject Alternative Names (SANs) on TLS certificate [edac4988e0238a9d765d2f1101d9687bb56d1ff160dbd79b4f449a1edd65d62e] in use with this connection.

Visit https://docs.fastly.com/en/guides/common-400-errors#error-421-misdirected-request for more information.

Is it possible to correct this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant