This commit is contained in:
jeepingben 2026-03-27 12:34:14 +00:00 committed by GitHub
commit da1758ae82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -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"

View file

@ -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"