I generated a certificate file with certbot. It is placed in /etc/letsencrypt/...
.
I created a group called elk
where I added the elasticsearch
user, and I recursively set it as the owning group for /etc/letsencrypt
and recursively set the permissions to 770
.
When I start elasticsearch via systemctl start elasticsearch.service
, it is not able to read the file? Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/etc/letsencrypt/live/<domain>/fullchain.pem" "read")
Why is that?
What strategy would you recommend to be able to use the same certificate for elasticsearch and kibana?
elk
?chgrp -R elk /etc/letsencrypt
command followed bychmod -R 770 /etc/letsencrypt
. Are you referring to something else?/etc/letsencrypt/live/<domain>/fullchain.pem
?ps -o pid,user,group,supgrp,args -C java
andnamei -l /etc/letsencrypt/live/<domain>/fullchain.pem
chmod -R 770
doesn't make sense. You don't want to give execute permissions to non-directory files in there and you don't want to give write access to anyone.