在 OpenSSL 中从服务器查找客户端证书信息 [英] Find client certificate information from server in OpenSSL

查看:39
本文介绍了在 OpenSSL 中从服务器查找客户端证书信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,它使用 SSL 连接来确保只有有效的客户端连接(使用客户端证书).服务器是否可以在连接上调用一些 API 调用来检索有关客户端使用的证书的信息?

I'm programming an application that uses a SSL connection to ensure only valid clients connect (using client certificates). Is there some API call the server can call on a connection to retrieve information about the certificate the client used?

推荐答案

尝试 SSL_get_peer_certificate 方法.

这篇关于在 OpenSSL 中从服务器查找客户端证书信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆