Skip to content

Instantly share code, notes, and snippets.

@GhazanfarMir
Last active April 1, 2023 19:34
Show Gist options
  • Save GhazanfarMir/18ed26105da91a073a73a47057e8aa7c to your computer and use it in GitHub Desktop.
Save GhazanfarMir/18ed26105da91a073a73a47057e8aa7c to your computer and use it in GitHub Desktop.

Revisions

  1. GhazanfarMir renamed this gist Mar 28, 2018. 1 changed file with 0 additions and 0 deletions.
  2. GhazanfarMir renamed this gist Mar 28, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. GhazanfarMir created this gist Mar 28, 2018.
    22 changes: 22 additions & 0 deletions instructions.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # 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