Created
September 21, 2024 15:45
-
-
Save ZHLHZHU/d79622672e2df15da4da715c9a2e88db to your computer and use it in GitHub Desktop.
Proxmox VE auto renew cert with Tailscale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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