windowsservercore: urllib SSL errors
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, python
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh python:3.7.1-windowsservercore đã được ghi lại và yêu cầu urllib của lệnh này tới letsencrypt.org. Điều tra cấu hình tin cậy chứng chỉ của container và xác minh rằng cùng yêu cầu đó thành công mà không gặp lỗi xác minh chứng chỉ đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)>
>>>
- Ngôn ngữ chính
- Dockerfile
- Star
- 2.8k
- Fork
- 1.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker-library/python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
docker-library/python#1151 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
docker-library/python#1150 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 54/100
docker-library/python#1147 ·
-
Provide 3.13t & 3.14t imagesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
docker-library/python#1082 · 10 bình luận · 40 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
docker-library/python#1076 · 5 bình luận · 1 reaction ·
Tất cả issue của docker-library/python
Issue tương tự
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linuxserver/docker-healthchecks#137 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NuSkooler/enigma-bbs#1215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Log spam when fetching from repoĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
nlewo/comin#245 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày