Skip to content

Instantly share code, notes, and snippets.

@jajansen
jajansen / setup-certbot-glkvm.sh
Created January 7, 2026 19:01
Proper certificates for for GLKVM Comet (Pro) using Certbot
#!/bin/bash
# Automated certbot setup script for KVMD (PiKVM) with Cloudflare DNS
# Usage: ./setup-certbot-glkvm.sh <domain> <cloudflare-api-token>
set -e # Exit on any error
# Validate arguments
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <domain> <cloudflare-api-token>"
echo "Example: $0 glkvm.example.com YOUR_CLOUDFLARE_API_TOKEN"