From 1f10efc62f2f5d2611d061fe7cadb87ea3416d88 Mon Sep 17 00:00:00 2001 From: Markus Lippert Date: Sat, 14 Mar 2020 10:06:27 +0100 Subject: [PATCH] Add OTP support for Synology deployment hook, see PR #2782 --- deployhooks.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deployhooks.md b/deployhooks.md index 468d0c0..0b302b5 100644 --- a/deployhooks.md +++ b/deployhooks.md @@ -517,4 +517,11 @@ export SYNO_Create=1 # defaults to off, this setting is not saved. By setting t acme.sh --deploy -d example.com --deploy-hook synology_dsm ``` -Certificate should now show up in "Control Panel" -> "Security" -> "Certificates" and can be assigned to Services or set as the default certificate. \ No newline at end of file +Certificate should now show up in "Control Panel" -> "Security" -> "Certificates" and can be assigned to Services or set as the default certificate. + +**With OTP (2-Factor-Authentication)** + +Use your browser to sign in with the admin account you want to use. When entering the OTP code, check the "Save this device" checkbox and continue. Get the device ID from the cookie `did` (Left click on the lock to the left side of the URL -> Cookies and Copy the content of the `did` cookie). Set the environment variable to the cookie value: +```sh +export SYNO_DID=A1Bjk... +``` \ No newline at end of file