Created
December 31, 2022 11:59
-
-
Save MParvin/be8f690f00ae6d27b7221186a713a648 to your computer and use it in GitHub Desktop.
Certbot DNS script, This script is used to generate a certificate using DNS challenge.
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 | |
if ! [ -x "$(command -v certbot)" ]; then | |
echo 'Error: certbot is not installed.' >&2 | |
exit 1 | |
fi | |
if [ -z "$1" ]; then | |
echo "Usage: $0 domain_name" | |
exit 1 | |
fi | |
certbot -d $1 --manual --preferred-challenges dns certonly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment