Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 x509 证书指针,例如 x509* cert = SSL_get_peer_certificate(connection);
x509* cert = SSL_get_peer_certificate(connection);
我应该使用什么功能来打印完整的证书?
X509_NAME_print_ex 系列函数就是您的答案。
这会将证书打印到控制台
PEM_write_X509(标准输出,对等);
如果要打印所有证书数据,X509_print 和 X509_print_fp 是更简单的选择。 链接到文档