Difference between revisions of "Openssl req -x509"

From wikieduonline
Jump to navigation Jump to search
Tag: Redirect target changed
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{lc}}
+
#redirect [[Create new x509 certificate: openssl req -x509 -newkey]]
 
 
# 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"
 
 
Generating a 4096 bit [[RSA private key]]
 
.............................................................................++++
 
...........................................................................................................................++++
 
writing new private key to '[[key.pem]]'
 
 
 
 
 
file cert[[.pem]]
 
cert.pem: PEM certificate
 
 
file key.pem
 
 
 
== Related ==
 
* <code>[[ssh-keygen]]</code>
 
 
 
== See also ==
 
* {{openssl req}}
 
 
 
[[Category:CA]]
 

Latest revision as of 09:19, 26 January 2024

Advertising: