-
Notifications
You must be signed in to change notification settings - Fork 180
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
双向认证时,未发送客户端证书,但是在代码中调用SSL_do_handshake依然返回了成功,如何能判断是否真的成功? #568
Comments
看起来你需要用这个:
|
谢谢,我尝试过使用这个函数,好像不太对,因为按照文档的描述,SSL_do_handshake返回1时表示握手成功完成,双向认证不发送客户端证书也会返回1,导致无法判断握手是不是真的成功。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
服务中间件:Tengine+铜锁v8.3.3
大致的代码如下,能确认服务端配置的是双向认证,在使用WireShark抓包时,也能看到alert警告。
但是SSL_do_handshake依然返回成功标识,因为我只是想验证握手是否成功,不需要发送实际的业务数据。
这样的情况该如何判断呢,或者怎么获取alert?
The text was updated successfully, but these errors were encountered: