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

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

Open
welrachid opened this issue Nov 6, 2024 · 3 comments

Comments

@welrachid
Copy link

welrachid commented Nov 6, 2024

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!

Copy link

github-actions bot commented Nov 6, 2024

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.

@welrachid
Copy link
Author

welrachid commented Nov 6, 2024

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.

@welrachid
Copy link
Author

welrachid commented Nov 6, 2024

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

@welrachid welrachid changed the title Feature request: Enable updating webroot directory on existing certificates without forcing Feature request: Enable updating webroot directory on existing certificates without forcing renew Nov 6, 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

1 participant