Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pki: make openssl database non-writable for others #558

Merged
merged 1 commit into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions packaging/bin/pki-enroll-openssh-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ sign() {

common_backup "${sshpub}" "${sshcert}"

umask "$(/bin/sh -l -c umask)"

#
# TODO: replace when el-6 supports -m PKCS8
#
Expand Down
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 "$(/bin/sh -l -c umask)"
OVIRT_KU="${ovirt_ku}" OVIRT_EKU="${ovirt_eku}" OVIRT_SAN="${ovirt_san}" \
openssl ca \
-batch \
Expand Down