Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:
https://homecotton.co.uk
I ran this command:
certbot certonly --dry-run --manual --preferred-challenges=dns --manual-auth-hook /etc/certbotscripts/godad_authenticator_eg.sh --manual-cleanup-hook /etc/certbotscripts/godad_cleanup_eg.sh -d homecotton.co.uk
It produced this output:
$ certbot certonly --dry-run --manual --preferred-challenges=dns --manual-auth-hook /etc/certbotscripts/godad_authenticator_eg.sh --manual-cleanup-hook /etc/certbotscripts/godad_cleanup_eg.sh -d homecotton.co.uk
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Cert not due for renewal, but simulating renewal for dry run
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for homecotton.co.uk
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.Are you OK with your IP being logged?
(Y)es/(N)o: Y
Running manual-auth-hook command: /etc/certbotscripts/godad_authenticator_eg.sh
Error output from manual-auth-hook command godad_authenticator_eg.sh:
Traceback (most recent call last):
File "", line 1, in
KeyError: 'result'
Traceback (most recent call last):
File "", line 1, in
KeyError: 'result'Waiting for verification...
Challenge failed for domain homecotton.co.uk
dns-01 challenge for homecotton.co.uk
Cleaning up challenges
Running manual-cleanup-hook command: /etc/certbotscripts/godad_cleanup_eg.sh
Some challenges have failed.IMPORTANT NOTES:
The following errors were reported by the server:
Domain: homecotton.co.uk
Type: unauthorized
Detail: Incorrect TXT record
"" found at
_acme-challenge.homecotton.co.ukTo fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.Note: the log indicates an exception raised in the pythonry:
raise errors.AuthorizationError('Some challenges have failed.')
My web server is (include version):
Server version: Apache/2.4.41 (Ubuntu)
Server built: 2023-03-08T17:32:54The operating system my web server runs on is (include version):
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="Bugs : Ubuntu"
PRIVACY_POLICY_URL="Data privacy | Ubuntu"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
My hosting provider, if applicable, is:
N/A
(godaddy is my DN provider)
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 0.40.0
Hi
I have a web server running on a local machine and a DN provided by godaddy. I originally used the following command to generate a certificate:
certbot certonly --manual --preferred-challenges dns -d homecotton.co.uk
Which worked, but requires me to manually enter the value for acme txt record in my go daddy account.
I'd like to be able to renew this automatically when the certificate expires.
Initially I thought I would simply be able to run renew and provide a script that updated the txt record with the new key in place of manually adding it - something like this:
$ certbot renew --dry-run
However from my searches and the documentation (User Guide ā Certbot 2.5.0 documentation) it looks like I need to use --manual-auth-hook and --manual-cleanup-hook and provide appropriate scripts to do the up date. Is that correct ? Should this allow me to automatically update the certificate ?
As a start I took the example scripts from the documentation, edited the the servername to api.godaddy.com and ran the above command, but getting the errors indicated.
When I ran the command it came up requiring user input regarding the ip address - does anyone know how I can prevent that ?
Does anyone know how I should write the script (for godaddy) in accordance with certbot requirements ?
Note: Not sure which parts of the script are icloud specific. For example in my scripts the auth header looks like "Authorization: sso-key :", but in the example scripts I got it seems to use "X-Auth-Key: $API_KEY" - possibly thats icloud specific ? Or the key format is different ?
And also the best way to debug the scripts ?