Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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


share|improve this question

1 Answer 1

up vote 18 down vote accepted

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 not performing an initial privsep from root then it might suit you to locate them somewhere local to the application with the relevantly restricted ownership and permissions.

share|improve this answer
I have indeed, thanks Dan. –  John Topley Sep 4 '09 at 16:11
is this standardized somewhere? The file system hierarchy standard doesn't contain it. –  cweiske Dec 4 '13 at 20:50
@cweiske This seems to be historical OpenSSL convention, not formally standardized, and a very unwieldy one in my opinion. My earliest trace is this version: rpm.pbone.net/index.php3/stat/4/idpl/38501/dir/redhat_other/com/… –  kubanczyk Apr 2 at 21:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.