Running Certbot as Jenkins job

Hello, Im trying to run the following script in a Jenkins job

My domain is: mydomain.com

I ran this command:
./certbot-auto certonly --manual -n --email myemail@mydomain.com --preferred-challenges=dns --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.mydomain.com --manual-public-ip-logging-ok --manual-auth-hook /home/ubuntu/certbot/pre.sh

It produced this output:

Performing the following challenges: dns-01 challenge for mydomain.com Running manual-auth-hook command: /home/ubuntu/certbot/pre.sh

Output from manual-auth-hook command pre.sh:
XXXXXXXXXXXX (challenge data)
Waiting for verification…

Challenge failed for domain mydomain.com dns-01 challenge for mydomain.com

for now, I want to manually create the txt records value on my DNS server.
is it possible to tell certbot to wait before trying to validate?

Thanks!

If you don’t provide an auth-hook script, Certbot will display the challenge data and then wait and prompt you! Providing an auth-hook script disables that default behavior.

There is an option called --debug-challenges which I think will effectively do what you want if you still need the auth-hook, although most people don’t use it with --manual!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.