This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| how_to:create_an_ssl_certificate [2026/03/23 10:18] – [Generating a self-signed certificate using OpenSSL] paul | how_to:create_an_ssl_certificate [2026/03/23 10:18] (current) – [Using OpenSSL] paul | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| If you are using Linux, then OpenSSL is usually installed as standard | If you are using Linux, then OpenSSL is usually installed as standard | ||
| - | OpenSSL has to be used from a command prompt. The following sections give examples of how to perform common tasks using OpenSSL | + | OpenSSL has to be used from a command prompt. The following sections give examples of how to perform |
| ====Generating a CSR using OpenSSL==== | ====Generating a CSR using OpenSSL==== | ||
| - | Run: | + | See the 'Using OpenSSL' |
| + | |||
| + | Then run: | ||
| openssl req -newkey rsa:2048 -nodes -keyout key.pem -out csr.pem | openssl req -newkey rsa:2048 -nodes -keyout key.pem -out csr.pem | ||
| Line 72: | Line 74: | ||
| Then, run: | Then, run: | ||
| - | openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -sha256 -days 365 | + | |
| This will generate a private key and self-signed certificate with an expiry of 365 days | This will generate a private key and self-signed certificate with an expiry of 365 days | ||