From 11ee4ac3a199a18d779f97e8b992b36b6879e6da Mon Sep 17 00:00:00 2001 From: James Carppe Date: Fri, 3 Sep 2021 09:57:02 +1200 Subject: [PATCH] Self-signed SSL generation fixes --- docs/v2.0-be/deploy/ssl.md | 2 +- docs/v2.0/deploy/ssl.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/v2.0-be/deploy/ssl.md b/docs/v2.0-be/deploy/ssl.md index 3187ffd..a787831 100644 --- a/docs/v2.0-be/deploy/ssl.md +++ b/docs/v2.0-be/deploy/ssl.md @@ -8,7 +8,7 @@ To do so, you can use the --ssl, --sslcert and - To generate and use a self-signed certificate you can use the following command on your server: -
openssl req -x509 -newkey rsa:4096 -keyout ~/local-certs/portainer.key -out ~/local-certs/portainer.crt -days 365
+
openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -keyout ~/local-certs/portainer.key -out ~/local-certs/portainer.crt
Then start Portainer referencing the certificate and key file you just created: diff --git a/docs/v2.0/deploy/ssl.md b/docs/v2.0/deploy/ssl.md index c176ffe..1593c42 100644 --- a/docs/v2.0/deploy/ssl.md +++ b/docs/v2.0/deploy/ssl.md @@ -8,7 +8,7 @@ To do so, you can use the --ssl, --sslcert and - To generate and use a self-signed certificate you can use the following command on your server: -
openssl req -x509 -newkey rsa:4096 -keyout ~/local-certs/portainer.key -out ~/local-certs/portainer.crt -days 365
+
openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -keyout ~/local-certs/portainer.key -out ~/local-certs/portainer.crt
Then start Portainer referencing the certificate and key file you just created: