Hi, I'm working with X509 Authentication and now I need to decode the PEM format of X509 Certificate.
I want to know whether the number of dashes in Begin of Certificate/ End of Certificate is defined or it depends on the implementation. -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- Mostly I have seen 5 dashes, but in some places I have different number of dashes. For an example, In this Git issue [1], there are 4 dashes. I have referred the spec The Internet IP Security PKI Profile of IKEv1/ISAKMP, IKEv2, and PKIX [2] also. Can you please tell whether it is mandatory to have 5 dashes in the format? Any help on this would be appreciated. [1] https://github.com/wso2/product-is/issues/4352 [2] https://tools.ietf.org/html/rfc4945#section-6.1 Thanks, Piraveena *Piraveena Paralogarajah* Software Engineer | WSO2 Inc. *(m)* +94776099594 | *(e)* [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
