Add OTP support for Synology deployment hook, see PR #2782

Markus Lippert 2020-03-14 10:06:27 +01:00
parent 2f25c2322b
commit 1f10efc62f
1 changed files with 8 additions and 1 deletions

@ -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.
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...
```