File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
org.jcryptool.releng/helper Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1010import multiprocessing
1111import os
1212import re
13+ import ssl
1314import socket
1415import sys
1516from abc import ABC
@@ -97,7 +98,12 @@ def send_request(context: PingContext) -> PingContext:
9798 """Send a request and save the return status code and possible errors."""
9899 req = Request (context .url , headers = {"User-Agent" : DefaultSettings .USER_AGENT .value })
99100 try :
100- _response = urlopen (req , timeout = context .timeout )
101+ # There were cert issues, so disable cert checking completely
102+ ctx = ssl .create_default_context ()
103+ ctx .check_hostname = False
104+ ctx .verify_mode = ssl .CERT_NONE
105+
106+ _response = urlopen (req , timeout = context .timeout , context = ctx )
101107 context .status = Status .OK
102108 context .http_code = _response .getcode ()
103109 context .error_reason = None
You can’t perform that action at this time.
0 commit comments