Give a user account access to its own key and certificate

Protected

Verified User
Joined
Oct 29, 2006
Messages
77
Hey there. I need to give a single user account access to its own (domain's) private key and certificate. It's a Let's Encrypt certificate which DirectAdmin manages and automatically renews, kept in /usr/local/directadmin/data/users/USERNAME/domains/ . The user must have immediate access to each new version of the certificate; however, none of the other users in the server should have access to any key or certificate (their own or this user's). I was thinking there might be a custom script that runs when let's encrypt renews the certificate? What's the best way to do this? Preferrably, the method should be DA-update-resistant. Thanks!
 
Hello,

By default SSL certs and keys for user domains can be accessed via Directadmin at user level.

There are post/pre script for letsencrypt you can find them on help.directadmin.com
 
Back
Top