[英]SSL handshake error (CERTIFICATE_VERIFY_FAILED) in grpc++
I am unable to change find the SSL certificate that the grpc speech recognition application uses. 我无法更改找到grpc语音识别应用程序使用的SSL证书。
I need to change the certificates as I am under a secure network which monitors all the HTTPS traffic and uses a different certificate than default. 我需要更改证书,就像在安全网络中一样,该网络监视所有HTTPS通信并使用与默认证书不同的证书。
While running the above mentioned speech recognition example, I am getting the error as 在运行上述语音识别示例时,出现以下错误:
E0128 15:20:51.191576608 7156 ssl_transport_security.cc:1233] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
I tried to find the location where I can change the SSL certificates and put the certificate provided by the XYZ framework . 我试图找到可以更改SSL证书并放置XYZ框架提供的证书的位置。 I have XYZ.pem
certificate file which I put in \\etc\\ssl\\certs
but nothing changed. 我有XYZ.pem
证书文件,该文件放在\\etc\\ssl\\certs
但没有任何更改。
Can someone help me resolve this? 有人可以帮我解决这个问题吗?
This solved my problem. 这解决了我的问题。
Just go to /etc/ssl/certs
and find where the ca-bundles.pem
is pointing. 只需转到/etc/ssl/certs
并找到ca-bundles.pem
指向的位置。
Go to the file ca-bundles.pem
(for me it was in /var/lib/ca-certificates/ca-bundles.pem
) and add your certificate manually by copying it from the .pem
file. 转到文件ca-bundles.pem
(对我来说,它在/var/lib/ca-certificates/ca-bundles.pem
),然后通过从.pem
文件中复制证书来手动添加证书。
save the changes and run your tests. 保存更改并运行测试。 :) :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.