mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
apache: Ensure that not everyone can read the keys
This would become a security risk if anyone gets shell access as any user to copy out the HTTPS keys. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
etc/httpd/conf/vhosts.d/ipfire-interface-ssl.conf
|
||||
etc/rc.d/init.d/apache
|
||||
etc/ssl/certs/ca-bundle.crt
|
||||
etc/ssl/certs/ca-bundle.trust.crt
|
||||
opt/pakfire/lib/functions.pl
|
||||
|
||||
@@ -39,6 +39,11 @@ extract_files
|
||||
# update linker config
|
||||
ldconfig
|
||||
|
||||
# Make apache keys not readable for everyone
|
||||
chmod 600 \
|
||||
/etc/httpd/server.key \
|
||||
/etc/httpd/server-ecdsa.key
|
||||
|
||||
# Update Language cache
|
||||
#/usr/local/bin/update-lang-cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user