DNS-01 challenge (no inbound HTTP required)
If the box is not reachable on port 80 from the internet, use the DNS-01
challenge. Certbot asks you to add a TXT record to your DNS zone to prove you
control the domain. No inbound connection to the box is needed.
- In the BNG management UI: About → Manage TLS cert → Generate
certbot script → select the DNS-01 tab. - Fill in the same hostname and email fields, then copy and run the script:
sudo bash certbot-dns01-setup.sh - Certbot will pause and display a TXT record to add, for example:
Please deploy a DNS TXT record under the name: _acme-challenge.bng-site-a.example.com with the following value: <token> - Add that TXT record in your DNS provider's control panel.
- Wait at least 60 seconds for the record to propagate, then press Enter in
the certbot terminal to continue. Certbot verifies the record and issues the
certificate. - The script copies the cert and key to
/var/lib/quantum-controller/tls/and
signals gunicorn to reload.