简体   繁体   English

检查CRL OpenSSL C

[英]Check CRL OpenSSL C

I'm developing a secure webserver in C/C++ using gSoap and OpenSSL. 我正在使用gSoap和OpenSSL在C / C ++中开发安全的Web服务器。 I need to check a CRL - struct X509_CRL - to see wheter or not a certificate - struct X509 - is revoked. 我需要检查CRL-结构X509_CRL-以查看是否有证书-结构X509被吊销。 I don't know how to do it and it doesn't seem I can find anything on the web. 我不知道该怎么做,而且似乎无法在网上找到任何东西。 OpenSSL is poorly, poorly documented, all I can find are command line examples I don't need! OpenSSL的文档很差,文档也很少,我所能找到的只是我不需要的命令行示例! Thanks to everyone would be so nice to answer. 谢谢大家,我将很高兴为您解答。

Take a look at crypto/x509/x509_vfy.s in openssl sources. 看一下openssl源代码中的crypto/x509/x509_vfy.s There is a function named X509_verify_cert(X509_STORE_CTX *) that probably do what you need to do. 有一个名为X509_verify_cert(X509_STORE_CTX *)的函数可能会执行您需要做的事情。 Anyway, this file can help you in your search. 无论如何,此文件可以帮助您进行搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM