Correctly install ECDSA certificate
authorGerhard Schlager <mail@gerhard-schlager.at>
Tue, 10 Sep 2019 00:44:52 +0000 (02:44 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 00:44:52 +0000 (02:44 +0200)
Follow-up to f6ec21851dcf417c13333179a0f933d1dcc3faa1

templates/web.letsencrypt.ssl.template.yml

index 66b97412e2de82a553ac03ca024f7fbdfd05bba9..8774bb01cd77b3a79469611b96900ae91fe6cdaa 100644 (file)
@@ -77,8 +77,8 @@ hooks:
         LE_WORKING_DIR="${LETSENCRYPT_DIR}" $$ENV_LETSENCRYPT_DIR/acme.sh \
           --installcert \
           -d $$ENV_DISCOURSE_HOSTNAME \
-          --fullchainpath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME$1.cer \
-          --keypath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME$1.key \
+          --fullchainpath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME.cer \
+          --keypath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME.key \
           --reloadcmd "sv reload nginx"
 
         ########################################################
@@ -92,10 +92,10 @@ hooks:
         fi
 
         LE_WORKING_DIR="${LETSENCRYPT_DIR}" $$ENV_LETSENCRYPT_DIR/acme.sh \
-          --installcert \
+          --installcert --ecc \
           -d $$ENV_DISCOURSE_HOSTNAME \
-          --fullchainpath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME$1.cer \
-          --keypath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME$1.key \
+          --fullchainpath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME_ecc.cer \
+          --keypath /shared/ssl/$$ENV_DISCOURSE_HOSTNAME_ecc.key \
           --reloadcmd "sv reload nginx"
 
         if cert_exists "" || cert_exists "_ecc"; then