Skip to content

Instantly share code, notes, and snippets.

View kodero's full-sized avatar

Odero Kennedy kodero

View GitHub Profile
@mokua
mokua / init-letsencrypt.sh
Created August 27, 2020 11:24
letsencrypt init file
#!/bin/bash
domains=(test.domain.com www.test.domain.com)
rsa_key_size=4096
data_path="./data/certbot"
email="put-email-address" # Adding a valid address is strongly recommended
staging=1 # Set to 1 if you're testing your setup to avoid hitting request limits
if [ -d "$data_path" ]; then
read -p "Existing data found for $domains. Continue and replace existing certificate? (y/N) " decision