Difference between revisions of "Openssl req -x509"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} == See also == * {{openssl req}} Category:CA")
 
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
 +
# interactive
 +
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
 +
 +
# non-interactive and 10 years expiration
 +
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname"
  
 
== See also ==
 
== See also ==

Revision as of 09:58, 6 December 2023

# interactive
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
# non-interactive and 10 years expiration
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname"

See also

Advertising: