GithubHelp home page GithubHelp logo

spacecase123 / test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dyntylluan/test

0.0 0.0 0.0 30 KB

This is a test, ignore lol

License: GNU Affero General Public License v3.0

Python 100.00%

test's Introduction

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:

test's People

Contributors

trwnh avatar dyntylluan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.