8 lines
235 B
Bash
8 lines
235 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# TODO: Make work with port other than 443
|
||
|
|
||
|
API_KEY=`cat /var/lib/mailinabox/api.key`
|
||
|
HOSTNAME=`hostname`
|
||
|
|
||
|
curl -s -X DELETE --user "$API_KEY:" https://$HOSTNAME/admin/dns/custom/_acme-challenge.$CERTBOT_DOMAIN/TXT
|