如何读取X509 V3证书的密钥? [英] how to read the keyusage of a X509 V3 certificate?
本文介绍了如何读取X509 V3证书的密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想读取证书中的密钥用法"字段.openssl中是否有可用的API?
I want to read the Key usage field in a certificate .is there an API is available in openssl ?
推荐答案
您可以尝试在openssl中使用以下命令.
You can try using the following command in openssl.
openssl x509 -in <certificate to check> -purpose -noout -text
这将打印出证书用途和证书本身的列表.
This would print out the list of certificate purpose and the certificate itself.
这篇关于如何读取X509 V3证书的密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文