December 2017
Beginner to intermediate
362 pages
8h 35m
English
Run the following command to create a self-signed key and a certificate pair using OpenSSL:
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 \-keyout /etc/ssl/private/nginx-selfsigned.key -out \/etc/ssl/certs/nginx-selfsigned.crt
The following table explains the arguments used in the previous command:
|
Parameters |
Description |
|
req |
This argument indicates that we want to use X.509 Certificate Signing Request (CSR) management. |
|
-x509 |
This argument allows us to create a self-signed certificate instead of generating a certificate signing request. |
|
-nodes |
This argument allows OpenSSL to skip the option to authenticate our certificate with a passphrase. |
|
-days |
This argument sets the duration ... |
Read now
Unlock full access