Skip to content

Instantly share code, notes, and snippets.

@eldondev
eldondev / CertBotNearlyFreeSpeechAuthHook.sh
Last active March 16, 2024 15:03 — forked from UnixSage/CertBotNearlyFreeSpeechAuthHook.sh
Drop in script for CertBot's --manual-auth-hook switch for DNS Hosted at NearlyFreeSpeech.com
#!/bin/bash
exec 19>/tmp/"${CERTBOT_DOMAIN}"."$(date +%F-%s)".certbot.log
export BASH_XTRACEFD=19
set -x
API_KEY="##NFS-API-KEY##"
LOGIN="##NFS-USER##"
updatedns() {