Quick and Easy process of getting letsencrypt wildcard domain certificate with cloudflare as dns provider
Login to any of your server ( this method does not requires to run commands from a working apache or nginx web server hence you can even run these commands from your workstation line client machine) Create a cloudflare credentials file need your email id and api key of cloudflare login you can get cloudflare api key from login into cloudflare account and nevigating to myprofile -> api tokens -> api keys -> global api key -> view # vim .cloudflarecredentials.ini paste content as bellow # Cloudflare API credentials used by Certbot dns_cloudflare_email = [email protected] dns_cloudflare_api_key = 0123456789abcdef0123456789abcdef01234567 use your mail id and api key in above file save and make it secure # chmod 400 .cloudflarecredentials.ini Now install required package # yum -y install python2-certbot-dns-cloudflare Now run bellow command # certbot certonly --dns-cloudflare --dns-cloudflare-credentials .cloudflarecredentials.ini -d *.mydomain.com replace *.mydomain.com