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