Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Last active September 11, 2022 02:56
Show Gist options
  • Select an option

  • Save Alex4386/ce7c13e6d2e60dbf36034cd7ccb92f09 to your computer and use it in GitHub Desktop.

Select an option

Save Alex4386/ce7c13e6d2e60dbf36034cd7ccb92f09 to your computer and use it in GitHub Desktop.
certbot setup script
#!/bin/bash
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-cloudflare
sudo snap connect certbot:plugin certbot-dns-cloudflare
# Example credentials file using restricted API Token (recommended):
# Cloudflare API token used by Certbot
dns_cloudflare_api_token = 0123456789abcdef0123456789abcdef01234567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment