Linux – SSL Certificate Location on UNIX/Linux

filesystemslinuxsslssl-certificateunix

Is there any standard or convention for where SSL certificates and associated private keys should go on the UNIX/Linux filesystem?

Best Answer

For system-wide use, OpenSSL should provide you /etc/ssl/certs and /etc/ssl/private. The latter of which will be restricted 700 to root:root.

If you have an application that doesn’t perform initial privilege separation from root, then it might suit you to locate them somewhere local to the application with the relevantly restricted ownership and permissions.