shell
#!/bin/bash
# check for null arguments
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: ./certbox-generator mysite.com [email protected]"
exit 0
fi
domain="$1"
mail="$2"
certbot certonly --standalone -d "$domain" --rsa-key-size 4096 --must-staple --email "$mail" --agree-tos