Last active
April 1, 2023 19:34
-
-
Save GhazanfarMir/18ed26105da91a073a73a47057e8aa7c to your computer and use it in GitHub Desktop.
Wildcard Certificate with LetsEncrypt
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
# Virtual Environment Setup | |
mkdir /opt/certbot | |
cd /opt/certbot | |
git clone https://github.com/certbot/certbot | |
cd certbot | |
git checkout v0.22.0 | |
sudo ./certbot-auto --os-packages-only | |
./tools/venv.sh | |
source venv/bin/activate | |
# Pull dns-dititalocean plugin via docker | |
docker pull certbot/dns-digitalocean | |
sudo docker run -it --rm --name certbot \ | |
-v "/etc/letsencrypt:/etc/letsencrypt" \ | |
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
-v "/home/gmir/.secrets/:/home/gmir/.secrets/" \ | |
certbot/dns-digitalocean certonly --server https://acme-v02.api.letsencrypt.org/directory | |
# answer all questions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment