This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| openssl:ca [2023/10/13 10:25] – created olaf | openssl:ca [2023/10/13 20:14] (current) – olaf | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| == Windows == | == Windows == | ||
| - | Open (double click) the certificate and install it into " | + | Open (double click) the certificate and install it for the local machine  | 
| + | |||
| + | |||
| + | ==== Create certificates for devices ==== | ||
| + | |||
| + | === Create a config file === | ||
| + | < | ||
| + | [req] | ||
| + | default_bits  | ||
| + | distinguished_name = req_distinguished_name | ||
| + | req_extensions  | ||
| + | |||
| + | [req_distinguished_name] | ||
| + | countryName  | ||
| + | stateOrProvinceName  | ||
| + | localityName  | ||
| + | organizationName  | ||
| + | organizationalUnitName  | ||
| + | commonName  | ||
| + | |||
| + | [req_ext] | ||
| + | keyUsage  | ||
| + | subjectAltName = @alt_names | ||
| + | |||
| + | [alt_names] | ||
| + | DNS.1   = < | ||
| + | DNS.2   = < | ||
| + | IP.1    = < | ||
| + | </ | ||
| + | Save it as < | ||
| + | |||
| + | === Create a key and the Certificate Signing Request === | ||
| + | < | ||
| + | openssl req -new -nodes -out < | ||
| + | </ | ||
| + | This creates two files: one with the key and one with the CSR. | ||
| + | |||
| + | === Create the certificate === | ||
| + | < | ||
| + | openssl x509 -req -sha256 -CA < | ||
| + | </ | ||