-
Notifications
You must be signed in to change notification settings - Fork 257
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
tls验证openssl CA证书失败 #86
Comments
这个应该是代码中mbedtls没处理正确,我之前有发现这个问题 |
root@63a364bdf4db:~/service/mqttclient-master/mqttclient-master/build# ./bin/emqx_example welcome to mqttclient test... [E] >> /root/service/mqttclient-master/mqttclient-master/network/nettype_tls.c:30 server_certificate_verify()... server_certificate_verify failed returned 0x0008 [E] >> /root/service/mqttclient-master/mqttclient-master/network/nettype_tls.c:149 nettype_tls_connect()...mbedtls handshake failed returned 0x0008 |
这是因为 nettype_tls_init 的时候用 传入的host(服务器地址) 来初始化 ssl 的hostname了 mbedtls_ssl_set_hostname . |
mbedtls认证X509证书总是失败nettype_tls.c:30 server_certificate_verify()... server_certificate_verify failed returned 0x0004,用mqttBox客户端可以正常连接到服务器,是不是不能使用自签名的证书啊
The text was updated successfully, but these errors were encountered: