From 180587e35f8d5c01a75c734f178ce51c3462aa0c Mon Sep 17 00:00:00 2001 From: Martin Arndt <5111490+Eagle3386@users.noreply.github.com> Date: Thu, 25 Jun 2020 17:16:19 +0200 Subject: [PATCH] Fixed 2FA issue help (logins with 2FA enabled _are_ possible!) --- Synology-NAS-Guide.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Synology-NAS-Guide.md b/Synology-NAS-Guide.md index ae027a3..79e9508 100644 --- a/Synology-NAS-Guide.md +++ b/Synology-NAS-Guide.md @@ -63,7 +63,11 @@ $ export SYNO_Certificate="" $ ./acme.sh --deploy -d "$CERT_DOMAIN" --deploy-hook synology_dsm ``` -Note that the user entered into `SYNO_Username` must not have two-factor authentication enabled. If it has, an error will say that the user/password is wrong, even if they are correct. If the chosen user has 2fa enabled, a workaround is to create a new user in the `admin` group just for this task. +Note that if the user entered for `SYNO_Username` has enabled two-factor authentication (2FA), the login will fail and the error states that user/password is wrong, even if both are correct. +To fix this, simply follow the steps described at the [Synology DSM deployhook](https://github.com/acmesh-official/acme.sh/wiki/deployhooks#20-deploy-the-cert-into-synology-dsm) wiki page - in short: log into your DSM via its website, making sure you've ticked `Remember this device` when asked for your OTP, get the `did` cookie's value and set the environment variable: +```sh +export SYNO_DID='YOUR VALUE' +``` ### Deploying additional certificates