As the title says, this is a test git

Cass "Owly" Python d2b73437d7 Test only 1 year ago
.github 5657a90ebc Update FUNDING.yml 4 years ago
LICENSE c5aa822cbf Initial commit 4 years ago
README.md d2b73437d7 Test only 1 year ago
auth 1afa771f10 extend sleep time to allow dns propagation? 2 years ago

README.md

Namecheap

certbot manual auth hook for DNS-01 with namecheap

requirements

current limitations

  • SLD/TLD extraction is extremely naive and does not support multipart tlds
  • no cleanup hook, just an auth hook
    • update: a cleanup function has been added to remove old challenges before setting a new one
  • none of the api calls are paginated yet but this probably doesn't matter bc the hook works based on an env var
  • no error checking or handling of any sort
  • was going to be a more robust wrapper of certbot that loops over all your domains, but heck it
  • lol everything is hardcoded so make sure to put in your own username / api key

example usage if you've got existing certs

edit existing renewal conf, e.g. /etc/letsencrypt/renewal/tarawneh.org.conf and make sure authenticator = manual, pref_challs = dns-01,, manual_auth_hook = /path/to/auth, manual_public_ip_logging_ok = True

[renewalparams]
account = 1234567890abcdef1234567890abcdef
authenticator = manual
server = https://acme-v02.api.letsencrypt.org/directory
pref_challs = dns-01,
manual_auth_hook = /home/trwnh/bin/namecheap/auth
manual_public_ip_logging_ok = True

example usage if you're making a new cert

sudo certbot certonly \
     --preferred-challenges=dns \
     --manual \
     --manual-auth-hook=/path/to/auth \
     --agree-tos \
     -d domain.com,*.domain.com

maintenance

you should be able to run certbot renew after that and the settings will be remembered? ~idk~ yes, this works without intervention

etc

pay me for emotional damages caused by namecheap's api:

interact with me elsewhere: