Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (915)
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 (3180)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2556)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "ans1parse -genstr" - Single Primitive Field DER File
How to generate a DER file with a single data field using the OpenSSL "ans1parse" command?
✍: FYIcenter.com
You can use the OpenSSL "ans1parse -genstr" command to generate a DER file with a single
data field. You just need to specify the field type and field value separated by ":".
Here are some examples of using "ans1parse -genstr" command:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> asn1parse -genstr "INTEGER:255" -noout -out integer.der OpenSSL> asn1parse -genstr "IA5STRING:Hello World!" -noout -out ascii.der OpenSSL> asn1parse -genstr "UTF8:Hello World!" -noout -out utf8.der OpenSSL> asn1parse -genstr "GENERALIZEDTIME:20161231235959Z" -noout -out time.der OpenSSL> asn1parse -genstr "NUMERIC:3.14159" -noout -out numeric.der OpenSSL> exit; C:\Users\fyicenter>type integer.der ☻☻ C:\Users\fyicenter>type ascii.der ▬♀Hello World! C:\Users\fyicenter>type utf8.der ♀♀Hello World! C:\Users\fyicenter>type time.der ↑☼20161231235959Z C:\Users\fyicenter>type numeric.der ↕3.14159
By the way, the "-genstr" option does not support SEQUENCE field type. You have to use the "-genconf" option to generate SEQUENCE ASN.1 structure.
⇒ OpenSSL "ans1parse -in" - Parse DER File
2016-10-15, 7257👍, 0💬
Popular Posts:
Certificate Summary: Subject: DigiCert Assured ID Root CA Issuer: DigiCert Assured ID Root CA Expira...
How to export a certificate from a certificate store using "certmgr.msc"? I want to keep it in a cer...
How to import a trusted certificate with Portecle? To import a trusted certificate into a keystore f...
What are the reasons why a X.509 certificate got revoked? When a certificate CA publishes a CRL (Cer...
How to install "JCE (Java Cryptography Extension) Unlimited Strength Jurisdiction Policy Files"? I w...