Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (923)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (3200)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2572)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "ans1parse -genconf" - Nested SEQUENCE ASN.1 Structure
How to how generate a DER with a nested SEQUENCE ASN.1 structure using the OpenSSL "ans1parse" command?
✍: FYIcenter.com
You can define a nested SEQUENCE ASN.1 structure in an OpenSSL configuration file
and use the "ans1parse -genconf" command to generate a DER with the structure
as shown in the test below:
C:\Users\fyicenter>type asn1_question.cnf default_md = md5 asn1 = SEQUENCE:questionSection [questionSection] trackingNumber = INTEGER:5 questionText = IA5STRING:"In asymmetric encryption, which key can be given out?" answerOption = SEQUENCE:optionSection [optionSection] optionA = IA5STRING:"A) Private key" optionB = IA5STRING:"B) Public key" optionC = IA5STRING:"C) Both keys" C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> asn1parse -genconf asn1_question.cnf -noout -out asn1_question.der OpenSSL> asn1parse -inform DER -in asn1_question.der -i 0:d=0 hl=2 l= 105 cons: SEQUENCE 2:d=1 hl=2 l= 1 prim: INTEGER :05 5:d=1 hl=2 l= 53 prim: IA5STRING :In asymmetric encryption, which key can be given out? 60:d=1 hl=2 l= 45 cons: SEQUENCE 62:d=2 hl=2 l= 14 prim: IA5STRING :A) Private key 78:d=2 hl=2 l= 13 prim: IA5STRING :B) Public key 93:d=2 hl=2 l= 12 prim: IA5STRING :C) Both keys
Note about the test:
⇒ OpenSSL "ans1parse -strparse" - Extract ASN.1 Sub Structure
2016-10-15, 8302👍, 0💬
Popular Posts:
How to download Mozilla "certutil" tool for Windows? I know it can be used to manage cert8.gb and ke...
How to view the ASN.1 structure of an RSA public key using the OpenSSL "asn1parse" command? You can ...
Certificate Summary: Subject: USERTrust RSA Certification Authority Issuer: AddTrust External CA Roo...
Certificate summary - Owner: www.paypal.com, Hosting Support, "PayPal, Inc.", STREET=2211 N 1st St, ...
Certificate summary - Owner: Symantec Class 3 Secure Server CA - G4, Symantec Trust Network, Symante...