Giter VIP home page Giter VIP logo

Comments (2)

zertap avatar zertap commented on July 17, 2024 3

Right, thanks!

I think the code in the repository should be fixed to have separate deletion and addition scripts, but for now this kind of workaround does it.

[root@nginx namecom-renewal]# ls -l
total 26
-rwxr-xr-x 1 root root 3815 Apr  5 06:03 certbot-dns-namecom.py
-rw-r--r-- 1 root root  133 Apr  5 06:29 config.json
-rwxr-xr-x 1 root root  139 Apr  5 06:16 dns-namecom-add.bash
-rwxr-xr-x 1 root root  141 Apr  5 06:16 dns-namecom-clean.bash
[root@nginx namecom-renewal]# cat dns-namecom-add.bash
#! /usr/bin/bash

export CERTBOT_DNS_NAMECOM_CONFIG=/root/namecom-renewal/config.json

/root/namecom-renewal/certbot-dns-namecom.py add $@
[root@nginx namecom-renewal]# cat dns-namecom-clean.bash
#! /usr/bin/bash

export CERTBOT_DNS_NAMECOM_CONFIG=/root/namecom-renewal/config.json

/root/namecom-renewal/certbot-dns-namecom.py clean $@

And then running with: certbot certonly --manual --preferred-challenges=dns --manual-auth-hook /root/namecom-renewal/dns-namecom-add.bash --manual-cleanup-hook /root/namecom-renewal/dns-namecom-clean.bash -d example.tld --agree-tos --email [email protected] --dry-run

from certbot-dns-name-com.

12joan avatar 12joan commented on July 17, 2024

Newer versions of certbot don't pass an argument, but instead call separate hooks for add and cleanup. I solved this by wrapping the Python script in two Bash scripts. Certbot docs

from certbot-dns-name-com.

Related Issues (2)

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.