Yandex dns Wildcard automation + haproxy

I made a simple modification to certbot-dns-pddyandex
My script based on this project https://github.com/actionm/certbot-dns-pddyandex/
How to use:
git clone https://github.com/actionm/certbot-dns-pddyandex/
get your yandex dns api token(details in README.md)
copy config.sh to “domain-name” (like “example.com” without quotes) in the same dir
change API_KEY in “domain-name” to your yandex api token
open authenticator.sh
change code to this: https://www.pastiebin.com/5d7e130516273
create new file called wc.sh, and place this code in it: https://www.pastiebin.com/5d7e146bb9caf
create 2 directories, called /certs and /oldcerts in the root dir

use chmod +x on all scripts
and now you can call wc.sh with argument of your domain name
example:
./wc.sh example.com

Feel free to criticize and suggest a better ways to do it.

3 Likes

Welcome the community forum and thanks for sharing your approach @kas1m!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.