在 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 方法.