Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (918)
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 (3186)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2560)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "req new -batch" - Using DN Default Values Only
How to run OpenSSL "req -new" command in batch mode? I don't OpenSSL to use DN default values only and do not prompt me.
✍: FYIcenter.com
If you have DN (Distinguished Name) default values provided
in the configuration file, you can run OpenSSl "req -new -batch" command
to take default values only without prompt as shown below:
C:\Users\fyicenter>type test.cnf # unnamed section of generic options default_md = md5 # default section for "req" command options [req] input_password = fyicenter prompt = yes distinguished_name = my_req_dn_prompt [my_req_dn_prompt] # Minimum of 4 bytes are needed for common name commonName = Common Name commonName_default = FYIcenter.com CA # ISO2 country code only countryName = Country Name countryName_default = US # State is optional, no minimum limit stateOrProvinceName = State stateOrProvinceName_default = NY # City is required localityName = City localityName_default = New York # Organization is optional organizationName = Organization organizationName_default = FYIcenter.com # Organization Unit is optional organizationalUnitName = Department organizationalUnitName_default = IT # Email is optional emailAddress = Email emailAddress_default = ca@fyicenter.com C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> req -new -key rsa_test.key -out test.csr -config test.cnf -batch OpenSSL> req -in test.csr -text -noout Certificate Request: Data: Version: 0 (0x0) Subject: CN=FYIcenter.com CA, C=US, ST=NY, L=New York, O=FYIcenter.com, OU=IT/emailAddress=ca@fyicenter.com ...
The output confirms that "req -new -batch" uses DN default values without prompting the user.
⇒ OpenSSL "req -new" - "no objects specified in config file" Error
2016-10-29, 3233👍, 0💬
Popular Posts:
Certificate Summary: Subject: *.roblox.com Issuer: Go Daddy Secure Certificate Authority - G2 Expira...
How to get a list of certificate in a certificate store in Windows PowerShell? The easiest way to ge...
How to read general information of a server certificate in IE? What is the meaning of "Issued by"? T...
Certificate Summary: Subject: SecureTrust CA Issuer: SecureTrust CA Expiration: 2029-12-31 19:40:55 ...
Certificate Summary: Subject: GTE CyberTrust Root 5 Issuer: GTE CyberTrust Root 5 Expiration: 2013-0...