So today I was installing a server with a domain that was behind a Cloudflare dns server. When trying to create a certificate with certbot it was failing constantly.
- certbot certonly -d www.domain.tld –standalone
The problem is that certbot is using port 80. By default Cloudflare has “Always Use HTTPS” turned on. If you turn this off you can use certbot again to generate your certs.