Skip to content

Commit 8713623

Browse files
committed
Fix ssl keys permissions
1 parent 82ae8fb commit 8713623

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

root-fs/init

+2
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ if [[ ! -f /config/keys/cert.key && ! -f /config/keys/cert.crt ]]; then
7575
SUBJECT="/C=DE/ST=BE/L=Berlin/O=Carlos Gomes/OU=CG Server/CN=*"
7676
echo "Generating self-signed keys in /config/keys, you can replace these with your own keys if required"
7777
openssl req -new -x509 -days 3650 -nodes -out /config/keys/cert.crt -keyout /config/keys/cert.key -subj "$SUBJECT"
78+
chown -R www-data:www-data /config/keys/
7879
fi
7980

8081
# copy pre-generated dhparams
8182
if [[ ! -f /config/nginx/dhparams.pem ]]; then
8283
cp /defaults/nginx/dhparams.pem.sample /config/nginx/dhparams.pem
84+
chown -R www-data:www-data /config/nginx/dhparams.pem
8385
fi
8486

8587
#######

0 commit comments

Comments
 (0)