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

Ensure members of the unbound group have read access to keys (Issue #… #817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions smallapp/unbound-control-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ chmod o-rw \
"$CTL_BASE.pem" \
"$CTL_BASE.key"

# Ensure expected group permissions
chmod g+r \
"$SVR_BASE.key" \
"$CTL_BASE.key" \

cleanup

echo "Setup success. Certificates created. Enable in unbound.conf file to use"
Expand Down
3 changes: 3 additions & 0 deletions testdata/10-unbound-anchor.tdir/keys/unbound-control-setup
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ test -f $CTL_BASE.pem || error "could not create $CTL_BASE.pem"
# remove unused permissions
chmod o-rw $SVR_BASE.pem $SVR_BASE.key $CTL_BASE.pem $CTL_BASE.key

# add needed group permissions
chmod g+r $SVR_BASE.key $CTL_BASE.key

# remove crap
rm -f request.cfg
rm -f $CTL_BASE"_trust.pem" $SVR_BASE"_trust.pem" $SVR_BASE"_trust.srl"
Expand Down