#!/usr/bin/env bash set -e # https://forum.proxmox.com/threads/custom-private-acme-ca.89257/ echo -e "Your domain is $(hostname --fqdn).\n" read -r -p "Are you sure to continue? [y/N] " response [[ "$response" != "y" ]] && exit 1 echo "Registering ACME account with proxmox..." pvenode acme account info Olaiz >/dev/null || pvenode acme account register Olaiz ferminolaiz@gmail.com -directory "https://ca.home.fermino.me/acme/acme/directory" echo "Setting up domain and requesting certificate..." pvenode config set -acme account=Olaiz,domains="$(hostname --fqdn)" pvenode acme cert order --force echo "Por favor configure el siguiente cron: " echo "0 0 * * * pvenode acme cert renew" rm -f proxmox-add-olaiz-acme.sh echo "Ok :)" exit 0