acmesh-official/acme.sh

Feature request: Enable updating webroot directory on existing certificates without forcing renew

welrachid opened this issue · 3 comments

Steps to reproduce

I've tried this, which says success but does not change the .acme.sh/<domain>/<domain>.conf file

acme.sh --update-account -d example.com --webroot /var/www/vhostY/

This command trigger a renew (and thereby might be throttled by limits) (force is required otherwise it will skip if more than X days before normal renewal)

acme.sh --renew -d example.com --webroot /new/path/to/webroot --force

What i really need is a CLI command that goes into a .acme.sh/<domain>/<domain>.conf and changes this line:

Le_Webroot='/var/www/vhostY/'

Thanks!

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.

Command

acme.sh --renew -d example.com --webroot /var/www/vhostY --debug 2

Debug log

[Wed 06 Nov 2024 07:40:48 AM UTC] Lets find script dir.
[Wed 06 Nov 2024 07:40:48 AM UTC] _SCRIPT_='/home/XXXXX/.acme.sh/acme.sh'
[Wed 06 Nov 2024 07:40:48 AM UTC] _script='/home/XXXXX/.acme.sh/acme.sh'
[Wed 06 Nov 2024 07:40:48 AM UTC] _script_home='/home/XXXXX/.acme.sh'
[Wed 06 Nov 2024 07:40:48 AM UTC] Using config home:/home/XXXXX/.acme.sh
[Wed 06 Nov 2024 07:40:48 AM UTC] LE_WORKING_DIR='/home/XXXXX/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.0.5
[Wed 06 Nov 2024 07:40:48 AM UTC] Running cmd: renew
[Wed 06 Nov 2024 07:40:48 AM UTC] _renewServer
[Wed 06 Nov 2024 07:40:48 AM UTC] Using config home:/home/XXXXX/.acme.sh
[Wed 06 Nov 2024 07:40:48 AM UTC] default_acme_server
[Wed 06 Nov 2024 07:40:48 AM UTC] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
[Wed 06 Nov 2024 07:40:48 AM UTC] _ACME_SERVER_HOST='acme.zerossl.com'
[Wed 06 Nov 2024 07:40:48 AM UTC] _ACME_SERVER_PATH='v2/DV90'
[Wed 06 Nov 2024 07:40:48 AM UTC] DOMAIN_PATH='/home/XXXXX/.acme.sh/example.com'
[Wed 06 Nov 2024 07:40:48 AM UTC] Renew: 'example.com'
[Wed 06 Nov 2024 07:40:48 AM UTC] Le_API='https://acme-v02.api.letsencrypt.org/directory'
[Wed 06 Nov 2024 07:40:48 AM UTC] Renew to Le_API=https://acme-v02.api.letsencrypt.org/directory
[Wed 06 Nov 2024 07:40:48 AM UTC] initpath again.
[Wed 06 Nov 2024 07:40:48 AM UTC] Using config home:/home/XXXXX/.acme.sh
[Wed 06 Nov 2024 07:40:48 AM UTC] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Wed 06 Nov 2024 07:40:48 AM UTC] _ACME_SERVER_HOST='acme-v02.api.letsencrypt.org'
[Wed 06 Nov 2024 07:40:48 AM UTC] _ACME_SERVER_PATH='directory'
[Wed 06 Nov 2024 07:40:48 AM UTC] Skip, Next renewal time is: 2025-01-04T07:22:30Z
[Wed 06 Nov 2024 07:40:48 AM UTC] Add '--force' to force to renew.

Command

acme.sh --update-account -d example.com --webroot /var/www/vhostY/

Debug log

[Wed 06 Nov 2024 07:27:20 AM UTC] Account update success for https://acme.zerossl.com/v2/DV90/account/XXXXXXXXXXX