NGINX Shenanigans
Most recent updates: 02/01/2025 09:04:32 UTC
Generate SSL Certs the caveman way with simple Terminal Command.Commands.
Installing certbot if needed:
sudo apt-get install python3-certbot-dns-cloudflare
Store the cloudflare api token key:
mkdir /some/path/to/the
sudo chmod 0700 /some/path/to/the
sudo chmod 0400 /some/path/to/the/api_access_secret.ini
sudo nano /some/path/to/the/api_access_secret.ini
The contents of the api_access_secret.ini
should be:
dns_cloudflare_api_token = <yourtopsecretcloudflareapitoken>
Pulling wildcard certs for a domain:
sudo certbot -v certonly --dns-cloudflare --dns-cloudflare-credentials /some/path/to/the/api_access_secret.ini -d 'prplanit.com' -d '*.prplanit.com'
The
Return contentsPublic ofIP thewith api_access_secret.ini
curl, should be:one-liner:
dns_cloudflare_api_tokencurl = <yourtopsecretcloudflareapitoken>ifconfig.me