Difference between revisions of "Openssl req"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
[[PKCS]]#10 certificate request and certificate generating utility
 
[[PKCS]]#10 certificate request and certificate generating utility
 
* https://www.openssl.org/docs/man1.0.2/man1/openssl-req.html
 
* https://www.openssl.org/docs/man1.0.2/man1/openssl-req.html
 +
 +
[[openssl req --help]]
 +
  
 
* <code>openssl req -config root-ca.cnf  -key /your_path/private/root-ca_key.pem -new -[[x509]] -days 3650 -[[sha256]] -extensions [[v3_ca]] -out /your_path/private/root-ca_cert[[.pem]]</code>
 
* <code>openssl req -config root-ca.cnf  -key /your_path/private/root-ca_key.pem -new -[[x509]] -days 3650 -[[sha256]] -extensions [[v3_ca]] -out /your_path/private/root-ca_cert[[.pem]]</code>

Revision as of 09:23, 26 January 2024

PKCS#10 certificate request and certificate generating utility

openssl req --help


  • openssl req -config root-ca.cnf -key /your_path/private/root-ca_key.pem -new -x509 -days 3650 -sha256 -extensions v3_ca -out /your_path/private/root-ca_cert.pem


Generate a CSR

Errors:

openssl req -new -key example.org.key -out example.org.csr
Can't open example.org.key for reading, No such file or directory.

Solution: Generate a key. openssl genrsa -aes256 -out ./example.org.key 4096


openssl req -new -key example.org.key -out example.org.csr
unable to load Private Key

Related terms

See also

  • https://gist.github.com/Soarez/9688998
  • Advertising: