Change location of SSL certificates

svangils

Verified User
Joined
Jan 5, 2021
Messages
9
Hi Everybody,

We used Direct Admin as our control panel en we created SSL certificates with Let's Encrypt.
The easy thing on Let's Encrypt is that the certificates renew automaticaly every 90 days. But for us, thats also the problem.

We build apps (for iOS and Android) en that apps are web-based in some places. To download a file in a app from a website, you must use the data of the SSL certificate. For that reason we copy the certificate and place the copy in the domains folder of the user (one above the public_html folder). The problem now is that the certificate changes every 90 days, so we have to replace the copy of the certificate every 90 days.

Is it possible to change the default SSL certificate location from /usr/local/directadmin/data/users/USER/domains/DOMAIN.COM.cert to /home/{customer}/domains/{domain}/certificatefolder or something?

I would like to hear from you
 
You may simply use let's encrypt post hook to copy the cert wherever you want after every removal :)
 
That sounds as a good solution, do you know of there is more information available about the post hook in combination with Direct Admin?
 
Back
Top