18
0
Fork 0

Droits moindre sur /etc/shellpki/ et crl.pem

This commit is contained in:
jdubois 2022-06-29 15:52:27 +02:00
parent fa697e05a0
commit fef738ff90
1 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ On génère une première fois le CRL :
Et on corrige les permissions pour qu'OpenVPN puisse lire le CRL : Et on corrige les permissions pour qu'OpenVPN puisse lire le CRL :
~~~ ~~~
# chmod 644 /etc/shellpki/crl.pem # chmod 604 /etc/shellpki/crl.pem
# chmod 755 /etc/shellpki/ # chmod 751 /etc/shellpki/
~~~ ~~~
Puis on édite `/usr/local/sbin/shellpki`, pour ajouter ces 2 commandes à la fin : Puis on édite `/usr/local/sbin/shellpki`, pour ajouter ces 2 commandes à la fin :
@ -69,8 +69,8 @@ Puis on édite `/usr/local/sbin/shellpki`, pour ajouter ces 2 commandes à la fi
chmod 750 "${CADIR}" "${CRTDIR}" "${KEYDIR}" "${CSRDIR}" "${PKCS12DIR}" "${OVPNDIR}" "${TMPDIR}" chmod 750 "${CADIR}" "${CRTDIR}" "${KEYDIR}" "${CSRDIR}" "${PKCS12DIR}" "${OVPNDIR}" "${TMPDIR}"
chmod 600 "${INDEX}"* "${SERIAL}"* "${CAKEY}" "${CRL}" chmod 600 "${INDEX}"* "${SERIAL}"* "${CAKEY}" "${CRL}"
chmod 640 "${CACERT}" chmod 640 "${CACERT}"
chmod 644 /etc/shellpki/crl.pem chmod 604 /etc/shellpki/crl.pem
chmod 755 /etc/shellpki/ chmod 751 /etc/shellpki/
} }
main "$@" main "$@"