Linking /etc/letsencrypt/live certs to a user directory

I have a nats server, for which I'd like to use a cert and key which are created with certbot.
For this I have created a new system user.
Instead of copying the certs and having to renew them manually every so often, I thought I could link them to the user.

ln -s /etc/letsencrypt/live/my.server /home/nats/certs/

However this directory is inaccessible, permission denied, when trying to read from it.

What are my options?
Should I create a hook that copies new certs to the /home/nats/certs dir?

Yes; Copy the new cert files after each renewal [using a --deploy-hook].
[and also set the permissions as needed for the files copied]


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.