Comments in a pem file

爱⌒轻易说出口 提交于 2020-01-29 05:58:15

问题


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.

Thanks


回答1:


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

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.



来源:https://stackoverflow.com/questions/19578812/comments-in-a-pem-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!