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 f298860 commit 75b3573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/bin/pki-enroll-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sign() {
-utf8 \
${EXTRA_COMMAND} \
|| die "Cannot sign certificate"
chmod a+r "${cert}" || die "Cannot set certificate permissions"
chmod a+r,go-wx "${cert}" || die "Cannot set certificate permissions"

return 0
}
Expand Down

0 comments on commit 75b3573

Please sign in to comment.