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, ∼7161🔥, 0💬
Popular Posts:
Certificate summary - Owner: CNNIC SSL, CNNIC SSL, CN Issuer: CNNIC ROOT, CNNIC, CN Expiration: Sun ...
What is "makecert.exe" on Windows? What can I use it for? "makecert.exe" is a Certificate Creation t...
Certificate summary - Owner: *.blogger.com, Google Inc, L=Mountain View, ST=California, US Issuer: G...
How to generate a new RSA key pair using OpenSSL "genrsa" command? If you need a new RSA key pair in...
Certificate summary - Owner: www.ziegler.com, The ZIEGLER COMPANY INC, "THE ZIEGLER COMPANIES, INC."...