windowsservercore: urllib SSL errors
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, python
- 领域
- devops, infrastructure
调研方向
首先,复现文档中记录的 python:3.7.1-windowsservercore 命令及其向 letsencrypt.org 发出的 urllib 请求。调查容器的证书信任配置,并验证同一请求能够成功完成,且不会出现所报告的证书验证错误。
由索引模型根据 Issue 内容生成。
描述
I can't get SSL to work in the container, any ideas welcome:
docker run -it python:3.7.1-windowsservercore
>>> import urllib.request; urllib.request.urlopen("https://letsencrypt.org/")
Traceback (most recent call last):
File "C:\Python\lib\urllib\request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "C:\Python\lib\http\client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Python\lib\http\client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Python\lib\http\client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Python\lib\http\client.py", line 1016, in _send_output
self.send(msg)
File "C:\Python\lib\http\client.py", line 956, in send
self.connect()
File "C:\Python\lib\http\client.py", line 1392, in connect
server_hostname=server_hostname)
File "C:\Python\lib\ssl.py", line 412, in wrap_socket
session=session
File "C:\Python\lib\ssl.py", line 853, in _create
self.do_handshake()
File "C:\Python\lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Python\lib\urllib\request.py", line 543, in _open
'_open', req)
File "C:\Python\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Python\lib\urllib\request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Python\lib\urllib\request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051)>
>>>
- 主要语言
- Dockerfile
- 星标
- 2.8k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
docker-library/python#1151 ·
-
难度 4/5 3-5 天 新手友好度 38/100
docker-library/python#1150 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 54/100
docker-library/python#1147 ·
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1082 · 10 条评论 · 40 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 55/100
docker-library/python#1076 · 5 条评论 · 1 个 reaction ·
查看 docker-library/python 的全部 Issue
相似的 Issue
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373未关闭
难度 2/5 1-3 小时 新手友好度 72/100
linuxserver/docker-healthchecks#137 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
难度 2/5 1-3 小时 新手友好度 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
NuSkooler/enigma-bbs#1215 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复