This fbox-updatecert.txt (1.8 KB) php script will install a certificate on an AVM fritzbox (tested with Firmware 6.83).
It expects three arguments
- A XML-file containing the credentials
- A PEM-file containing the full certificate chain
- A PEM-file containing the private key
The XML-File should look like this:
fbox-credentials.txt (198 Bytes)
Usage with dehydrated (deploy_cert in hook.sh):
case $DOMAIN in
yourfritzbox.domain.name)
echo "uploading certificate for $DOMAIN"
fbox-updatecert \
fbox-credentials \
$FULLCHAINFILE \
$KEYFILE | grep SSL
;;
esac