T
T
Thrash72018-06-16 22:30:03
linux
Thrash7, 2018-06-16 22:30:03

What should be the permissions and owner of the certificate and key files of the OpenVPN server?

I welcome everyone!
I put OpenVPN on a VPS under Debian. Generated keys, certificates, Diffie-Hellman keys. Created a user to run the OpenVPN daemon.
Tell me, what should be the access rights and who should be the owner of the key files and certificates on the server side?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Shitskov, 2018-06-16
@Thrash7

Owner - user to run the daemon.
Permissions 400 (read access to owner only) for private key files. Certificates are public information and the access level can be quite 444. The superuser will still be able to have full access to files, regardless of the owner and the rights set.

D
Dmitry, 2018-06-16
@Tabletko

Better than 600 owner root

C
CityCat4, 2018-06-17
@CityCat4

For keys and prime - root:root 0600, for certificates root:root 0644

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question