norbert/examples/certbot-norbert-auth.sh

11 lines
262 B
Bash
Raw Normal View History

2022-02-13 19:00:03 +01:00
#!/bin/sh
API_USER=""
API_KEY=""
curl -s --request POST \
--url http://10.200.100.10:18000/present \
--header 'Content-Type: application/json' \
--user "$API_USER:$API_KEY" \
--data "{\"fqdn\": \"$CERTBOT_DOMAIN\", \"value\": \"$CERTBOT_VALIDATION\"}"