Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:create-csr [2026/08/14 12:31] – chris | linux:create-csr [2026/08/14 12:35] (current) – chris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Create Certificate Signing Request (CSR) using OpenSSL ====== | ||
| + | |||
| Create private key: | Create private key: | ||
| <code bash> | <code bash> | ||
| openssl genrsa -out server.key 4096 | openssl genrsa -out server.key 4096 | ||
| </ | </ | ||
| + | Configuration File: // | ||
| + | <code ini> | ||
| + | distinguished_name = req_distinguished_name | ||
| + | req_extensions = v3_req | ||
| + | prompt = no | ||
| + | |||
| + | [req_distinguished_name] | ||
| + | C = COUNTRY | ||
| + | L = LOCATION | ||
| + | O = ORGANIZATION | ||
| + | OU = ORGANIZATION UNIT | ||
| + | CN = *.lab.mueller.world | ||
| + | |||
| + | [v3_req] | ||
| + | keyUsage = keyEncipherment, | ||
| + | extendedKeyUsage = serverAuth | ||
| + | subjectAltName = @alt_names | ||
| + | |||
| + | [alt_names] | ||
| + | DNS.1 = *.lab.mueller.world | ||
| + | </ | ||
| + | |||
| + | Create Certificate Signing Request | ||
| + | <code bash> | ||
| + | openssl req -new -key server.key -config server.conf -out server.csr | ||
| + | </ | ||
| + | |||
| + | |||