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

Automatic renewal doesn't work #5

Open
adhawkins opened this issue May 22, 2017 · 3 comments
Open

Automatic renewal doesn't work #5

adhawkins opened this issue May 22, 2017 · 3 comments
Assignees

Comments

@adhawkins
Copy link

Hi,

I've managed to generate a certificate using certbot external auth:

certbot --staging -d xxx.yyy.zzz -a certbot-external-auth:out --certbot-external-auth:out-public-ip-logging-ok --preferred-challenges dns --certbot-external-auth:out-handler ./handler-example.sh certonly

The handler-example.sh generates an appropriate DNS entry and updates the DNS.

but when I try to renew:

certbot renew --force-renewal --cert-name xxx.yyy.zzz

I get the error:

Running manual mode non-interactively is not supported (yet)

Also, looking in /etc/letsencrypt/renewal/xxx.yyy.zzz, the config file doesn't have any reference to the external handler script I'm using to populate the DNS.

Any suggestions as to how I can get this to work?

Thanks

Andy

@ph4r05
Copy link
Member

ph4r05 commented May 22, 2017

Will take a look, thanks for issue

@cbix
Copy link

cbix commented Aug 17, 2017

Same issue here. /root/hexonet/acme.py is my custom custom hooks scripts which puts a given ACME challenge in the TXT record. It worked a while back but now it doesn't (latest certbot 0.10.2 on debian jessie).
/etc/letsencrypt/renewal/xxx.yyy.zzz.conf:

# renew_before_expiry = 30 days
version = 0.14.0
cert = /etc/letsencrypt/live/xxx.yyy.zzz/cert.pem
privkey = /etc/letsencrypt/live/xxx.yyy.zzz/privkey.pem
chain = /etc/letsencrypt/live/xxx.yyy.zzz/chain.pem
fullchain = /etc/letsencrypt/live/xxx.yyy.zzz/fullchain.pem
archive_dir = /etc/letsencrypt/archive/xxx.yyy.zzz

# Options used in the renewal process
[renewalparams]
authenticator = certbot-external-auth:out
installer = certbot-external-auth:out
account = xxxxxxxx
certbot_external_auth:out_public_ip_logging_ok = True
certbot_external_auth:out_handler = /root/hexonet/acme.py
certbot_external_auth:out_dehydrated_dns = True
pref_challs = dns-01,

@ph4r05 ph4r05 self-assigned this Aug 17, 2017
@cbix
Copy link

cbix commented Aug 22, 2017

My workaround is to issue the certonly command in cron instead of renew. I think certbot should differ between manual and scripted certificate issuing, the latter using a handler script and thus not being run manually.

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