mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-04-22 14:47:00 -04:00
Merge b43a7c86e0 into 315077b9e6
This commit is contained in:
commit
da1758ae82
2 changed files with 8 additions and 0 deletions
|
|
@ -209,6 +209,11 @@ chmod g+r,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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue