From 88e02acec8346b26df12ea18a6cc2ed25fe0d4dc Mon Sep 17 00:00:00 2001 From: adjager1 <45431578+adjager1@users.noreply.github.com> Date: Mon, 26 Oct 2020 22:01:05 +0100 Subject: [PATCH] mention --insecure option in command to prevent curl error on https deployment --- Synology-NAS-Guide.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Synology-NAS-Guide.md b/Synology-NAS-Guide.md index 2065a6b..76d9669 100644 --- a/Synology-NAS-Guide.md +++ b/Synology-NAS-Guide.md @@ -69,6 +69,20 @@ To fix this, simply follow the steps described at the [Synology DSM deployhook]( export SYNO_DID='YOUR VALUE' ``` +When we want to use https to deploy the new certificate, we need to add the --insecure option to the deploy command to prevent curl errors. refer to [https://github.com/acmesh-official/acme.sh/wiki/Options-and-Params] + +```sh +$ cd /usr/local/share/acme.sh +# Single quotes prevents some escaping issues if your password or username contains certain special characters +$ export SYNO_Username='Admin_Username' +$ export SYNO_Password='Admin_Password!123' +$ export SYNO_Scheme="https" +$ export SYNO_Port="5001" +# You must specify SYNO_Certificate, for the default certificate, we use an empty string +$ export SYNO_Certificate="" +$ ./acme.sh --insecure --deploy --home . -d "$CERT_DOMAIN" --deploy-hook synology_dsm +``` + ### Deploying additional certificates By specifying a different `SYNO_Certificate` and (optionally) `SYNO_Create`, we can deploy multiple certificates to the DSM. These commands assume you are still working in the same terminal and have exported all other necessary variables described above.