Enable certbot automatic renewal for cloudflare CDN

A couple of days ago, I received an email from the Let’s Encrypt and was told the certificate of my domain will expire soon. This domain has been encrypted by certbot and the automatic renewal worked well at that time. About one month ago, I added it to cloudflare CDN. It may hindered the certificate renew.

So I spent some time to fix the problem.

Nginx + Letsencrypt + Aria2

Most websites supports HTTPS right now. So I decided to re-configure my download server to HTTPS in weekend, and update aria2 to latest version.


  • VPS
    • OpenVZ VPS
  • OS
    • Debian 9.12
    • Kernel 2.6.32
  • Softwares
    • aria2 1.35.0
    • AriaNg 1.1.4
    • Letsencrypt/certbot 0.28.0
    • Nginx 1.10.3