an00/an00.github.io

验证 X.509 证书有效性

Opened this issue · 0 comments

an00 commented

https://blog.an00.cn/2021/08/05/%E9%AA%8C%E8%AF%81-X-509-%E8%AF%81%E4%B9%A6%E6%9C%89%E6%95%88%E6%80%A7/

验证 X.509 证书的有效性X.509 是公钥证书的格式标准,非常常见。但是证书可以自签、被撤销,就需要验证 CA 证书是否有效,下面以 python 为例。 检查 CA 的有效性,从 OCSP(在线证书状态协议)可以得到证书是否被签发方回收 12345678910111213141516171819202122232425262728293031323334353637383940414243