I am trying to create an SSL cert and this is the error i am getting when i try to run the cert creator. I am completely lost with this stuff so I probably won’t provide the correct info
# INFO: Using main config file /home/mgranger/dehydrated/config
Processing mgranger.dynamic-dns.net
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting challenge for mgranger.dynamic-dns.net...
200 Successful Update
+ Responding to challenge for mgranger.dynamic-dns.net...
200 Successful Update
Unknown hook invalid_challenge
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "dns-01",
"status": "invalid",
"error": {
"type": "urn:acme:error:connection",
"detail": "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.mgranger.dynamic-dns.net",
"status": 400
},
"uri": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"keyAuthorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
})
Here is the hook.sh folder looks like
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
USERNAME="xxxxxxxx" # Your username
PASSWORD="xxxxxxxx" # Your password
HOSTNAME="mgranger.dynamic-dns.net" # Your DNS hostname
case "$1" in
"deploy_challenge")
curl "https://nic.changeip.com/nic/update?u=${USERNAME}&p=${PASSWORD}&hostname=${HOSTNAME}"
echo
;;
"clean_challenge")
curl "https://nic.changeip.com/nic/update?u=${USERNAME}&p=${PASSWORD}&hostname=${HOSTNAME}"
echo
;;
"deploy_cert")
sudo systemctl restart home-assistant@mgranger.service
;;
"unchanged_cert")
;;
"startup_hook")
;;
"exit_hook")
;;
*)
echo Unknown hook "${1}"
exit 0
;;
esac