Comments (2)
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.
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)
- How to use clean? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from certbot-dns-name-com.