Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (69)
EC Keys (577)
Firefox (31)
General (12)
Google Chrome (25)
Intermediate CA (152)
Java VM (33)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (22)
OpenSSL (237)
Other (7)
Portecle (38)
Publishers (2704)
Revoked Certificates (30)
Root CA (89)
RSA Keys (2229)
Tools (46)
Tutorial (3)
What Is (22)
Windows (129)
Collections:
Other Resources:
OpenSSL "ans1parse -in" - Parse DER File
How to parse a DER file using the OpenSSL "ans1parse" command?
✍: FYIcenter.com
You can parse a DER file with OpenSSL "ans1parse -inform DER -in" command
as shown in the test below, assuming we have some DER file created from the previous tutorial:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> asn1parse -inform DER -in integer.der 0:d=0 hl=2 l= 2 prim: INTEGER :FF OpenSSL> asn1parse -inform DER -in ascii.der 0:d=0 hl=2 l= 12 prim: IA5STRING :Hello World! OpenSSL> asn1parse -inform DER -in utf8.der 0:d=0 hl=2 l= 12 prim: UTF8STRING :Hello World! OpenSSL> asn1parse -in time.der -inform DER 0:d=0 hl=2 l= 15 prim: GENERALIZEDTIME :20161231235959Z OpenSSL> asn1parse -inform DER -in numeric.der 0:d=0 hl=2 l= 7 prim: NUMERICSTRING :3.14159
To read the output of the OpenSSL "ans1parse" command, we need to understand the meaning of each output column:
⇒ OpenSSL "ans1parse -genconf" - Configuration File
⇐ OpenSSL "ans1parse -genstr" - Single Primitive Field DER File
2016-10-15, 5803👍, 0💬
Popular Posts:
Certificate Summary: Subject: GTE CyberTrust Global Root Issuer: GTE CyberTrust Global Root Expirati...
What is the PKCS#1 v1.5 padding schema used in OpenSSL "rsautl" command? PKCS#1 v1.5 padding schema ...
How to specify x.509 v3 extensions options in the configuration file for generating CSR using the Op...
Renewing a certificate with the same key provides maximum compatibility with past uses of the accomp...
Certificate Summary: Subject: GlobalSign Organization Validation CA - G2 Issuer: GlobalSign Root CA ...