如何从证书生成的PEM格式的私钥中获得到期日期?
嗨,我从证书中生成2个文件
.pem
格式,使用openssl pkcs12 -in {{key_pair_file}}} -out {{file_name}}。pem -nocerts -nocerts -nodes -password pass:test
.cer> .cer> .cer
格式>格式>格式>格式>格式>格式>格式>格式>格式>格式>格式>格式>格式> ,使用openssl pkcs12 -in {{key_pair_file}} -out {{file_name}}。cer-nokeys -nodes -nodes -password pass:test
那么如何知道数字1 的到期日期? 实际上,我已经使用openssl x509 -noout -enddate {{file}}。pem
命令 但是有一个错误。
...PEM routines:CRYPTO_internal:no start line:...:Expecting: TRUSTED CERTIFICATE
Hi i generate 2 file from the certificate
This one in
.pem
format, generated usingopenssl pkcs12 -in {{key_pair_file}} -out {{file_name}}.pem -nocerts -nodes -password pass:test
This one in
.cer
format, generated usingopenssl pkcs12 -in {{key_pair_file}} -out {{file_name}}.cer -nokeys -nodes -password pass:test
So how to know the expiration date of the number 1?
actually I already use openssl x509 -noout -enddate {{file}}.pem
command
but got an error.
...PEM routines:CRYPTO_internal:no start line:...:Expecting: TRUSTED CERTIFICATE
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
钥匙没有任何固有的到期概念。只有证书才能。
Keys don't have any inherent notion of expiration. Only certificates do.