Description
[2021/07/06 04:20:33.698] ERROR: test_08_gcp_valid_endpoint (test_encryption.TestCustomEndpoint)
|
[2021/07/06 04:20:33.698] ----------------------------------------------------------------------
|
[2021/07/06 04:20:33.698] Traceback (most recent call last):
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 1054, in _configured_socket
|
[2021/07/06 04:20:33.698] sock = ssl_context.wrap_socket(sock, server_hostname=host)
|
[2021/07/06 04:20:33.698] File "C:\python\Python36\Lib\ssl.py", line 407, in wrap_socket
|
[2021/07/06 04:20:33.698] _context=self, _session=session)
|
[2021/07/06 04:20:33.698] File "C:\python\Python36\Lib\ssl.py", line 817, in __init__
|
[2021/07/06 04:20:33.698] self.do_handshake()
|
[2021/07/06 04:20:33.698] File "C:\python\Python36\Lib\ssl.py", line 1077, in do_handshake
|
[2021/07/06 04:20:33.698] self._sslobj.do_handshake()
|
[2021/07/06 04:20:33.698] File "C:\python\Python36\Lib\ssl.py", line 689, in do_handshake
|
[2021/07/06 04:20:33.698] self._sslobj.do_handshake()
|
[2021/07/06 04:20:33.698] ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
|
[2021/07/06 04:20:33.698] The above exception was the direct cause of the following exception:
|
[2021/07/06 04:20:33.698] Traceback (most recent call last):
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 77, in _wrap_encryption_errors
|
[2021/07/06 04:20:33.698] yield
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 505, in create_data_key
|
[2021/07/06 04:20:33.698] key_alt_names=key_alt_names)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\venv-encryption\lib\site-packages\pymongocrypt\explicit_encrypter.py", line 135, in create_data_key
|
[2021/07/06 04:20:33.698] key = run_state_machine(ctx, self.callback)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\venv-encryption\lib\site-packages\pymongocrypt\state_machine.py", line 150, in run_state_machine
|
[2021/07/06 04:20:33.698] callback.kms_request(kms_ctx)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 128, in kms_request
|
[2021/07/06 04:20:33.698] conn = _configured_socket((host, port), opts)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 1067, in _configured_socket
|
[2021/07/06 04:20:33.698] _raise_connection_failure(address, exc, "SSL handshake failed: ")
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 252, in _raise_connection_failure
|
[2021/07/06 04:20:33.698] raise AutoReconnect(msg) from error
|
[2021/07/06 04:20:33.698] pymongo.errors.AutoReconnect: SSL handshake failed: oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
|
[2021/07/06 04:20:33.698] During handling of the above exception, another exception occurred:
|
[2021/07/06 04:20:33.698] Traceback (most recent call last):
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\test\test_encryption.py", line 1221, in test_08_gcp_valid_endpoint
|
[2021/07/06 04:20:33.698] self.run_test_expected_success('gcp', master_key)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\test\test_encryption.py", line 1120, in run_test_expected_success
|
[2021/07/06 04:20:33.698] provider_name, master_key=master_key)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 505, in create_data_key
|
[2021/07/06 04:20:33.698] key_alt_names=key_alt_names)
|
[2021/07/06 04:20:33.698] File "C:\python\Python36\Lib\contextlib.py", line 99, in __exit__
|
[2021/07/06 04:20:33.698] self.gen.throw(type, value, traceback)
|
[2021/07/06 04:20:33.698] File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 83, in _wrap_encryption_errors
|
[2021/07/06 04:20:33.698] raise EncryptionError(exc)
|
[2021/07/06 04:20:33.698] pymongo.errors.EncryptionError: SSL handshake failed: oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
|
The last green test run was 6/29. This seems to be related to a recent change of the toolchain or the windows distro.
Attachments
Issue Links
- causes
-
PYTHON-2810 SSL_CERT_FILE variable does not work with pyOpenSSL on Windows
-
- Closed
-
- is related to
-
PYTHON-2890 Document how to workaround [SSL: CERTIFICATE_VERIFY_FAILED] errors on Windows
-
- Backlog
-
-
PYTHON-2808 Remove Windows certifi workaround added in PYTHON-2798
-
- Closed
-
-
PYTHON-2608 Test that KMS TLS connections verify peer certificates
-
- Closed
-