TLS Setup with Percona 4.0.10

HI all, We have percona mongod database version 4.0.10 installed on RHEL 7, when we try to set up TLS in mongod.conf file like below, we can’ t start the database. Without setting this, there is no problem to start it. I see the log file with error: “…/mongodb/ssl/stg.pem permission denied”… but the file already set 755

tls:
FIPSMode: true
mode: preferTLS
certificateKeyFile: /mongodb/ssl/stg.pem

I am not sure what causes the problem. Any input for this, I am appreciated very much,
Nguyen

1 Like

Hi Nguyen, which user is running mongodb? also check that the permissions of the directories are correct so the user can get to the file. Also if you are running with Selinux check the file has the proper context.

1 Like

Hi Igroene, I use mongod user to run mongodb. startup database with root user. I also check permission of the directory of the file

1 Like