TLS / HTTPS Setup
Last updated
# Debian / Ubuntu
sudo apt install certbot
# Obtain a certificate (standalone mode — stop any web server first)
sudo certbot certonly --standalone -d yourproxy.example.com{
"http_cert": "/etc/letsencrypt/live/yourproxy.example.com/fullchain.pem",
"http_key": "/etc/letsencrypt/live/yourproxy.example.com/privkey.pem"
}# Add a renewal hook to restart the proxy after each renewal
echo "systemctl restart maxmind-api-proxy" > /etc/letsencrypt/renewal-hooks/deploy/restart-proxy.sh
chmod +x /etc/letsencrypt/renewal-hooks/deploy/restart-proxy.shopenssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout proxy.key \
-out proxy.crt \
-subj "/CN=maxmind-proxy" \
-addext "subjectAltName=IP:192.168.1.10,DNS:proxy.internal"{
"http_tls": false,
"http_listen": "127.0.0.1:8080",
"http_cert": "unused",
"http_key": "unused"
}