SSL Certificates
Install Snap and Certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-cloudflare
Get your credential API Token
To obtain your Cloudflare API token, follow these steps:
Log in to your Cloudflare account.
Go to the Profile section.
Select API Tokens.
Click on Create Token.
For this case, you only need "Edit zone DNS" permissions.
Once you've configured the token, click Continue to summary and then Create Token.
Make sure to copy your new API token and securely store it; you won’t be able to see it again.
echo "dns_cloudflare_api_token = <your-cloudflare-api>" > ~/certbot.ini
certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials ~/certbot.ini \
-d *.provewithryd.xyz
The default location of the certificates are /etc/letsencrypt/live/provewithryd.xyz/fullchain.pem
for the public key and /etc/letsencrypt/live/provewithryd.xyz/privkey.pem
for the private key
Last updated