客户端和服务端双向认证的连接 #123
Answered
by
xiaofei0800
djtroubleyin
asked this question in
Q&A (问题和回答)
-
如何在客户端设置证书和tls版本,我使用quic_endpoint_new设置config,config里面配置了ssl_ctx,但是在quic_endpoint_connect里面崩溃在ssl_set_min_proto_version |
Beta Was this translation helpful? Give feedback.
Answered by
xiaofei0800
Jan 2, 2024
Replies: 1 comment 2 replies
-
C示例参考
客户端:针对SSL_CTX配置携带客户端证书(在simple_client.c client_load_ssl_ctx函数中添加)
TLS版本不需要设置。 另外,你的证书和TLS版本如何设置的? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
djtroubleyin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C示例参考
服务端:针对SSL_CTX配置客户端认证并加载认证所需的根证书(在simple_server.c server_load_ssl_ctx函数中添加)
客户端:针对SSL_CTX配置携带客户端证书(在simple_client.c client_load_ssl_ctx函数中添加)
TLS版本不需要设置。
可参考boringssl文档 SSL_CTX_set_verify相关部分。
另外,你的证书和TLS版本如何设置的?