Comments in a pem file

后端 未结 1 1347
说谎
说谎 2021-01-01 11:48

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条回答
  • 2021-01-01 12:21

    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.

    0 讨论(0)
提交回复
热议问题