[openssl-users] [EXTERNAL] scripting creating a cert

Nichols, Timothy (Checkpoint) Timothy.Nichols at va.gov
Fri Mar 31 17:41:41 UTC 2017

Hi, did you get your answer to this? I just discovered 134 messages in the folder I'd set up for receiving said messages...and promptly forgot to check for same.

I just went through this exercise and have set up my configuration files and bash script to generate certificates.

-TN (Tim)

-----Original Message-----
From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf Of Robert Moskowitz
Sent: Thursday, March 09, 2017 15:50
To: openssl-users at openssl.org
Subject: [EXTERNAL] [openssl-users] scripting creating a cert

I am creating self-signed certs with:

openssl req -new -outform PEM -out certs/$your_host_tld.crt -newkey
rsa:2048 -nodes -keyout private/$your_host_tld.key -keyform PEM -days
3650 -x509 -extensions v3_req

Where, for example:


Thing is that this then prompts for a number of fields:

Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

Is there some 'simple' way to provide these answers?  Like with env variables?


openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

More information about the openssl-users mailing list