Pem文件中的注释 [英] Comments in a pem file

查看:122
本文介绍了Pem文件中的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否存在将注释放入pem证书中的方法,以便openssl在解析证书时会忽略注释.

Does anyone know if there exists a way to put comments in a pem certificate such that openssl will ignore the comments while parsing the certificate.

谢谢

推荐答案

-----BEGIN FOO----------END FOO-----以外的任何内容都应被OpenSSL忽略.

Anything outside -----BEGIN FOO----- and -----END FOO----- should be ignored by OpenSSL.

此行为通常用于在PEM文件本身中嵌入证书的完整的人类可读详细描述,以便阅读该证书的任何人都可以看到其编码内容,而不必在其上调用openssl x509 ....

This behavior is commonly used to e.g. embed an entire human-readable detailed description of the cert in the PEM file itself, so that anyone reading it can see what it encodes without having to invoke openssl x509 ... on it.

这篇关于Pem文件中的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆