Automated security file downloading needed

david364

Active Member
Sep 15, 2013
43
5
58
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.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,441
1,004
313
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.
 
Thread starter Similar threads Forum Replies Date
Alongar Security 2
7 Security 4
Jeff P. Security 7
Krydos Security 6
B Security 6