Droits moindre sur /etc/shellpki/ et crl.pem
This commit is contained in:
parent
fa697e05a0
commit
fef738ff90
|
@ -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 "$@"
|
||||||
|
|
Loading…
Reference in a new issue