How-to: Automatic certificate install on an AVM fritzbox


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

case $DOMAIN in
       echo "uploading certificate for $DOMAIN"
       fbox-updatecert \
            fbox-credentials \
            $FULLCHAINFILE \
            $KEYFILE | grep SSL


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.