Skip to content

Instantly share code, notes, and snippets.

@ZHLHZHU
Created September 21, 2024 15:45
Show Gist options
  • Save ZHLHZHU/d79622672e2df15da4da715c9a2e88db to your computer and use it in GitHub Desktop.
Save ZHLHZHU/d79622672e2df15da4da715c9a2e88db to your computer and use it in GitHub Desktop.
Proxmox VE auto renew cert with Tailscale
#!/bin/bash
# Server name
servername="your-pve-domain.com"
# Set -e to exit on error
set -e
# Generate the key and write it to the target file
tailscale cert --key-file - $servername > /etc/pve/local/pveproxy-ssl.key
# Generate the certificate and write it to the target file
tailscale cert --cert-file - $servername > /etc/pve/local/pveproxy-ssl.pem
# Restart the Proxmox VE service to apply the new certificate
service pveproxy restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment