rename automatically .crt and .key files

berthobox

Registered
Sep 11, 2019
1
0
1
Qui
cPanel Access Level
Root Administrator
Hi,
from cPanel with cPanel (powered by Sectigo) Auto SSL I automatically generate the SSL certificates for my domains and the *.crt and *.key files are saved in the SSL folder related to the domain.

In my node.js applications, to create a https server with node.js, I call the *.cert and *.key files. So far so good, but every 90 days those files are regenerated so I have to change them manually in all applications.

Is there a way to automatically rename the .crt and .key files generated by cPanel and cPanel (powered by Sectigo) (or set a default name) so I don't always have to change the filename in the node application?

Example.
1 - abc.crt and def.key generated on 1/1/2019
2 - ghi.crt and lmn.key generated on 1/4/2019


I would like both the 1 and 2 examples files to always be called "cert.crt" and "key.key".

Thank you!
 
Last edited:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,862
2,216
363
cPanel Access Level
DataCenter Provider
Twitter