Automated security file downloading needed


Active Member
Sep 15, 2013
cPanel Access Level
Reseller Owner
I need a script (on server: Centos, or on client: Windows) to download the AutoSSL Let's Encrypt private key and certificate files for a list of domains I own, so I can update my local development computer whenever cPanel decides to renew my webserver certificates, making them invalid locally.

I don't know enough OS script language to do it myself.

To the best of my knowledge, cPanel and WHM won't do it, my VPS hosting company has refused to do it, and the Web doesn't have any postings showing how to do it.

I'm wondering if there is any expertise here in this forum to do it.

The script would take a list of domain names are corresponding local file paths and would download the private key and certificate files for each domain.


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! This shouldn't be *too* hard to setup, but we aren't going to be able to write a script for you to handle it. If you have a development server with cPanel, I'm assuming that's also running CentOS/RedHat/CloudLinux, so could you just rsync the /var/cpanel/ssl/apache_tls directory between the two systems? That's where the SSL files are physically located on the filesystem, so having an rsync command that runs as a nightly cron would make this process completely automated.