SSL: CERTIFICATE_VERIFY_FAILED error

487 views
Skip to first unread message

Zisha Weinstock

unread,
Jul 26, 2022, 6:40:52 PM7/26/22
to Google Ads API and AdWords API Forum
We've been using the Python google-ads library for a while now from behind our corporate firewall and it was working fine until yesterday.  

Last time it worked was yesterday 7/25/22 at 12:30pm EDT then at 1:30pm we started getting the following error:

Exception: HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)'))) at 2022-07-26 17:43:49 HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))
Traceback (most recent call last):
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)

Our security people are saying that nothing changed on our end. Was there any change in that time period on Google's end?

Google Ads API Forum Advisor

unread,
Jul 27, 2022, 1:45:33 AM7/27/22
to zis...@gmail.com, adwor...@googlegroups.com
Hi Zisha,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

The error you're encountering doesn't seem to be Google Ads API specific. You could try to report an issue to the googleads-python-lib issue tracker as the client library owners are better equipped to help on this concern.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d1ok8:ref
Reply all
Reply to author
Forward
0 new messages