Skip to content
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

自签名双向认证如何实现? #93

Open
lingting2030 opened this issue Dec 25, 2023 · 1 comment
Open

自签名双向认证如何实现? #93

lingting2030 opened this issue Dec 25, 2023 · 1 comment

Comments

@lingting2030
Copy link

大佬,
请教下我现在是对接一个私有云,使用的是自签名证书,客户端需要用到以下三个文件,我需要如何实现?
连接服务器时所使用的CA.crt文件
连接服务器时所使用的client.crt文件
连接服务器时所使用的client.key文件

目前看到demo只是设置CA证书==》mqtt_set_ca(client, (char*)test_ca_get());,自签名双向认证是否支持?麻烦指导下,谢谢
1703482501144

@fanucwj
Copy link

fanucwj commented Feb 1, 2024

请问这个问题解决了吗?我也遇到一样的问题,总是返回服务器校验失败
network/nettype_tls.c:30 server_certificate_verify()... server_certificate_verify failed returned 0x4004
/network/nettype_tls.c:203 nettype_tls_connect()...mbedtls handshake failed returned 0x4004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants