1
0
Fork 0
mirror of synced 2024-06-14 21:31:10 -04:00

Fix crl file permissions

This commit is contained in:
Vitaliy Snurnitsin 2022-04-27 21:51:43 +03:00
parent 99569daf31
commit 5705d2f60b

View file

@ -523,7 +523,7 @@ func (openVPNPKI *OpenVPNPKI) updateFilesFromSecrets() (err error) {
func (openVPNPKI *OpenVPNPKI) updateCRLOnDisk() (err error) {
secret, err := openVPNPKI.secretGetByName(secretCRL)
crl := secret.Data["crl.pem"]
err = ioutil.WriteFile(fmt.Sprintf("%s/pki/crl.pem", *easyrsaDirPath), crl, 0600)
err = ioutil.WriteFile(fmt.Sprintf("%s/pki/crl.pem", *easyrsaDirPath), crl, 0644)
if err != nil {
log.Errorf("error write crl.pem:%s", err.Error())
}