Skip to content

Instantly share code, notes, and snippets.

@TTRCharlie
TTRCharlie / setup-certbot-openvpn-letsencrypt.sh
Last active February 22, 2023 09:19 — forked from sabbour/setup-certbot-openvpn-letsencrypt.sh
certbot is in the offical Ubuntu repositories, so it don't need PPA
#!/bin/bash
# IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80.
# This is required to pass the HTTP challenge.
# Download: curl -o setup.sh <raw URL of this gist>
# Enable execution: sudo chmod +x setup.sh
# Run: ./setup.sh -d "yourdomain.tld" -e "youremail@yourdomain.tld"
while getopts d:e: option