Skip to content

Commit

Permalink
pki: make certificates only readable to group and others
Browse files Browse the repository at this point in the history
even though we copy these to hosts it's not a good idea to allow them to
be overwritten by a random user.
  • Loading branch information
michalskrivanek committed Jul 26, 2022
1 parent 2261502 commit 2f8b462
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packaging/bin/pki-enroll-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sign() {
[ -e "${CERT_CONF}" ] || die "${CERT_CONF} is missing, Cannot sign certificate"
EXTRA_COMMAND="-extfile ${CERT_CONF} -extensions ${extsection}"
fi
umask 0022
OVIRT_KU="${ovirt_ku}" OVIRT_EKU="${ovirt_eku}" OVIRT_SAN="${ovirt_san}" \
openssl ca \
-batch \
Expand Down

0 comments on commit 2f8b462

Please sign in to comment.