2019-02-11 14:05:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# TODO: Make work with port other than 443
|
|
|
|
|
|
|
|
API_KEY=`cat /var/lib/mailinabox/api.key`
|
|
|
|
HOSTNAME=`hostname`
|
|
|
|
|
2019-04-05 21:44:18 +00:00
|
|
|
curl -s -X DELETE --user "$API_KEY:" https://$HOSTNAME/admin/dns/custom/_acme-challenge.$CERTBOT_DOMAIN/TXT
|