GeezerVison is showing github.com — ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL · Issue #1284 · GoogleCloudPlatform/python-docs-samples
ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL #1284DescriptionIn which file did you encounter the issue?
/python-docs-samples/speech/cloud-client/transcribe_streaming_mic.py
Did you change the file? If so, how?
Nope.
Describe the issue
Getting the following errors while executing 'transcribe_streaming_mic.py' python example.
I have exported the 'GOOGLE_APPLICATION_CREDENTIALS' for KEY location.
Can you please help me on this issue ?
(env) root@linux:/python-docs-samples/speech/cloud-client#
(env) root@linux:/python-docs-samples/speech/cloud-client# python transcribe_streaming_mic.py
E1031 16:56:06.657955430 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:06.740789555 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:06.815913513 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:06.968742346 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.094688971 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.174502180 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.277684055 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.378768763 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.532342763 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.676538846 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.791226930 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:07.909150763 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:08.005649888 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:08.248604888 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:08.347812180 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:08.535098430 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
E1031 16:56:08.724522555 2913 ssl_transport_security.cc:976] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
Traceback (most recent call last):
File "transcribe_streaming_mic.py", line 193, in <module>
main()
File "transcribe_streaming_mic.py", line 189, in main
listen_print_loop(responses)
File "transcribe_streaming_mic.py", line 128, in listen_print_loop
for response in responses:
File "/env/lib/python2.7/site-packages/grpc/_channel.py", line 348, in next
return self._next()
File "/env/lib/python2.7/site-packages/grpc/_channel.py", line 339, in _next
raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)>
(env) root@linux:/python-docs-samples/speech/cloud-client#
(env) root@linux:/python-docs-samples/speech/cloud-client#
(env) root@linux:/python-docs-samples/speech/cloud-client#
Activitytheacodes commented on Jan 2, 2018 @titusece can you let us know your Python version? SSL verification failing is indicative of older Pythons that lack SNI support. titusece commented on Jan 8, 2018 Hi,
Thanks for your reply.
As far as I remember that it worked for my friend with the same setup.
python version is 2.7. tab1293 commented on May 1, 2018 Any update on this issue or more information I can provide? I am seeing the same thing when trying to connect over SSL with a Python GRPC client:
ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
When trying to connect to the same service with the same certificates using a golang grpc client, the connection works fine. theacodes commented on May 1, 2018 It's almost certainly due to older SSL. I would highly suggest installing requests[security] and upgrading your Python version. tab1293 commented on May 3, 2018 @jonparrott I have tested with python 2.7.15 with request[security] installed and still seeing this issue. theacodes commented on May 3, 2018 tab1293 commented on May 3, 2018 @jonparrott even with that work around, still not working.
$ python --version
Python 2.7.15
$ python -c "import ssl; print ssl.OPENSSL_VERSION"
OpenSSL 1.0.2o 27 Mar 2018
Is there any additional information I can include to help debug? theacodes commented on May 3, 2018 Your gRPC version and OS will be helpful tab1293 commented on May 3, 2018 Python's gRPC version is at 1.9.1 and I'm on MacOS 10.13 theacodes commented on May 3, 2018 Can you try with a newer version of grpc for posterity? tab1293 commented on May 3, 2018 Just upgraded and tested with grpcio-1.11.0 with no luck. Seeing the same error:
E0503 12:02:25.491373000 140735530255168 ssl_transport_security.cc:1063] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
nathanielmanistaatgoogle commented on May 3, 2018 @jiangtaoli2016, @jboeuf: what might cause this user to see E0503 12:02:25.491373000 140735530255168 ssl_transport_security.cc:1063] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED? theacodes commented on May 3, 2018 nathanielmanistaatgoogle commented on May 3, 2018 tab1293 commented on May 3, 2018 FWIW this certificate was signed by an intermediate CA. Tested with openssl s_client and the certificate passes verification and the connection is fine. Could gRPC potentially be struggling with the certificate chain? aman-merkle commented on Mar 20, 2023 Did you find any solution?
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|