Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy certificate failed with synology_dsm #5306

Closed
KexinCC opened this issue Sep 27, 2024 · 3 comments
Closed

Deploy certificate failed with synology_dsm #5306

KexinCC opened this issue Sep 27, 2024 · 3 comments

Comments

@KexinCC
Copy link

KexinCC commented Sep 27, 2024

I use neilpang/acme.sh docker to deploy my certificate, i got my certificate correctly but cannot deploy it.

[Fri Sep 27 09:56:46 UTC 2024] Domain config new key exists, old key SYNO_Certificate='""' has been removed.
[Fri Sep 27 09:56:46 UTC 2024] SYNO_CERTIFICATE='""'
[Fri Sep 27 09:56:46 UTC 2024] Getting API version...
[Fri Sep 27 09:56:46 UTC 2024] _base_url='http://localhost:5000'
[Fri Sep 27 09:56:46 UTC 2024] GET
[Fri Sep 27 09:56:46 UTC 2024] url='http://localhost:5000/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query&query=SYNO.API.Auth'
[Fri Sep 27 09:56:46 UTC 2024] timeout=
[Fri Sep 27 09:56:46 UTC 2024] _CURL='curl --silent --dump-header /acme.sh/http.header  -L  --trace-ascii /tmp/tmp.oTk0oDAOPo  -g '
[Fri Sep 27 09:56:46 UTC 2024] ret='0'
[Fri Sep 27 09:56:46 UTC 2024] Logging into localhost:5000...
[Fri Sep 27 09:56:46 UTC 2024] GET
[Fri Sep 27 09:56:46 UTC 2024] url='http://localhost:5000/webapi/entry.cgi?api=SYNO.API.Auth&version=7&method=login&format=sid&account=root&passwd=Dzl%40002120&enable_syno_token=yes'
[Fri Sep 27 09:56:46 UTC 2024] timeout=
[Fri Sep 27 09:56:46 UTC 2024] _CURL='curl --silent --dump-header /acme.sh/http.header  -L  --trace-ascii /tmp/tmp.xSZ750QPWl  -g '
[Fri Sep 27 09:56:46 UTC 2024] ret='0'
[Fri Sep 27 09:56:46 UTC 2024] error_code='402'
[Fri Sep 27 09:56:46 UTC 2024] Failed to authenticate with error: 402.
[Fri Sep 27 09:56:46 UTC 2024] Error encountered while deploying.

Copy link

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

@kapsh
Copy link

kapsh commented Oct 5, 2024

@KexinCC please also post how do you run docker image, account.conf without sensitive info and full deploy command. Are you using admin account with password or SYNO_USE_TEMP_ADMIN=1?

Deploy hook works for me in 7.2, without docker though. If that's possible, try to login into DS using SSH, fetch this git repo and run acme.sh directly on host (probably requires su to root).

@nillebor
Copy link

nillebor commented Oct 7, 2024

@KexinCC,
please delete define domain in the log and others user and password (see log). You specify the user root. Please create another user for acme and create a new password. You save both in the account.conf.

@kapsh,
SYNO_USE_TEMP_ADMIN=1 does not work in Docker. This option is only for the native installation directly in the Synology! Acme requires only one account with administrator rights. You don't need root or sudo in docker. Acme Docker has been working for years without problems in different DiskStations.

@KexinCC KexinCC closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants