Where is the PEM file format specified?

后端 未结 6 2062
暗喜
暗喜 2020-12-02 16:37

I need to parse .PEM files.
I know that the standard for \"Privacy-enhanced Electronic Mail\" is defined in RFCs 1421-24. But they don\'t seem to mention some text I fin

6条回答
  •  心在旅途
    2020-12-02 17:13

    I found an old thread regarding this issue. It looks like there is no "official" standard format for the encapsulation boundaries and the best way to determine this is by guessing the contents based on well-known keywords you find in the BEGIN statement.

    As answered by indiv, for the full list of the keywords, refer to the OpenSSL crypto/pem/pem.h header file.

提交回复
热议问题