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

Receiving SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] due to expired certificate. #4

Open
cpackett-relativity opened this issue Oct 27, 2023 · 0 comments

Comments

@cpackett-relativity
Copy link

Hi @ThiagoBarradas,

Just received this error with the Runscope integration for ADO. Do you have any ideas what we could do to resolve this?

2023-10-27T14:46:06.8722892Z [command]/usr/bin/wget -O app.py https://gist.githubusercontent.com/ThiagoBarradas/bc845ca918be6002a707819806c548fe/raw
2023-10-27T14:46:06.9532063Z --2023-10-27 14:46:06--  https://gist.githubusercontent.com/ThiagoBarradas/bc845ca918be6002a707819806c548fe/raw
2023-10-27T14:46:06.9899477Z Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
2023-10-27T14:46:06.9944518Z Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|185.199.109.133|:443... connected.
2023-10-27T14:46:07.1528554Z HTTP request sent, awaiting response... 200 OK
2023-10-27T14:46:07.1529157Z Length: 3017 (2.9K) [text/plain]
2023-10-27T14:46:07.1533371Z Saving to: ‘app.py’
2023-10-27T14:46:07.1538220Z 
2023-10-27T14:46:07.1539466Z      0K ..                                                    100% 4.29M=0.001s
2023-10-27T14:46:07.1540575Z 
2023-10-27T14:46:07.1542851Z 2023-10-27 14:46:07 (4.29 MB/s) - ‘app.py’ saved [3017/3017]
2023-10-27T14:46:07.1544005Z 
2023-10-27T14:46:07.1559212Z 
2023-10-27T14:46:07.1628623Z [command]/opt/hostedtoolcache/Python/3.8.18/x64/bin/python app.py https://api.runscope.com/radar/bucket/a6b08ea3-b73f-4d8c-bcda-de955272d2d0/trigger de3c5568-a5f0-4607-8a02-872d5b92e643
2023-10-27T14:46:07.5151054Z Traceback (most recent call last):
2023-10-27T14:46:07.5152937Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 557, in urlopen
2023-10-27T14:46:07.5155081Z     httplib_response = self._make_request(conn, method, url,
2023-10-27T14:46:07.5157643Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
2023-10-27T14:46:07.5159250Z     self._validate_conn(conn)
2023-10-27T14:46:07.5160886Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 782, in _validate_conn
2023-10-27T14:46:07.5162572Z     conn.connect()
2023-10-27T14:46:07.5166005Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/connection.py", line 245, in connect
2023-10-27T14:46:07.5167306Z     self.sock = ssl_wrap_socket(conn, self.key_file, self.cert_file,
2023-10-27T14:46:07.5169039Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/util/ssl_.py", line 285, in ssl_wrap_socket
2023-10-27T14:46:07.5170444Z     return context.wrap_socket(sock, server_hostname=server_hostname)
2023-10-27T14:46:07.5226951Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 500, in wrap_socket
2023-10-27T14:46:07.5227625Z     return self.sslsocket_class._create(
2023-10-27T14:46:07.5228200Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1073, in _create
2023-10-27T14:46:07.5228770Z     self.do_handshake()
2023-10-27T14:46:07.5229292Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1342, in do_handshake
2023-10-27T14:46:07.5229908Z     self._sslobj.do_handshake()
2023-10-27T14:46:07.5230635Z ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)
2023-10-27T14:46:07.5231302Z 
2023-10-27T14:46:07.5231584Z During handling of the above exception, another exception occurred:
2023-10-27T14:46:07.5231925Z 
2023-10-27T14:46:07.5232077Z Traceback (most recent call last):
2023-10-27T14:46:07.5232977Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 360, in send
2023-10-27T14:46:07.5233728Z     resp = conn.urlopen(
2023-10-27T14:46:07.5234710Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py", line 588, in urlopen
2023-10-27T14:46:07.5235648Z     raise SSLError(e)
2023-10-27T14:46:07.5236619Z requests.packages.urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)
2023-10-27T14:46:07.5237368Z 
2023-10-27T14:46:07.5237623Z During handling of the above exception, another exception occurred:
2023-10-27T14:46:07.5237970Z 
2023-10-27T14:46:07.5238100Z Traceback (most recent call last):
2023-10-27T14:46:07.5238364Z   File "app.py", line 95, in <module>
2023-10-27T14:46:07.5238604Z     main()
2023-10-27T14:46:07.5238777Z   File "app.py", line 11, in main
2023-10-27T14:46:07.5239059Z     trigger_resp = requests.get(trigger_url)
2023-10-27T14:46:07.5240286Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/api.py", line 69, in get
2023-10-27T14:46:07.5241104Z     return request('get', url, params=params, **kwargs)
2023-10-27T14:46:07.5242166Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/api.py", line 50, in request
2023-10-27T14:46:07.5243162Z     response = session.request(method=method, url=url, **kwargs)
2023-10-27T14:46:07.5244430Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 468, in request
2023-10-27T14:46:07.5245175Z     resp = self.send(prep, **send_kwargs)
2023-10-27T14:46:07.5246002Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 576, in send
2023-10-27T14:46:07.5246892Z     r = adapter.send(request, **kwargs)
2023-10-27T14:46:07.5247741Z   File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 433, in send
2023-10-27T14:46:07.5248624Z     raise SSLError(e, request=request)
2023-10-27T14:46:07.5249355Z requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)
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