asn1parse– tool to parse and display ASN.1 fields of a DER or PEM encoded file.
asn1parse file [-encode encoded-file]
This tool is for verifying and displaying the encoding of DER or PEM encoded files. Useful for debugging. This tool first checks if the input file is in PEM format by examining the header and footer. If so, it converts it into equivalent binary file by applying base64 decoding on the body, removing the header and footer. The resulting file is parsed as per the DER (Distinguished Encoding Rules) and the successfully parsed elements are displayed on the screen.
With –encode option, it writes the parsed content into the specified file in DER format. This ...