Skip to content
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