Difference between revisions of "Openssl req -x509"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
== See also == | == See also == | ||
* {{openssl req}} | * {{openssl req}} | ||
+ | * {{x509}} | ||
[[Category:CA]] | [[Category:CA]] |
Revision as of 10:13, 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" Generating a 4096 bit RSA private key .............................................................................++++ ...........................................................................................................................++++ writing new private key to 'key.pem'
file cert.pem cert.pem: PEM certificate file key.pem key.pem: ASCII text
Related
See also
- CSR:
openssl req [ -x509 ]
- X.509, ASN.1,
openssl x509
,.pem, der
, PFX, PKCS, SAN,openssl x509, CSR
Advertising: