mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 11:05:54 +02:00
httpscert: Increase size of the RSA key to 4096.
RSA keys with length of 1024 bits are considered weak.
This commit is contained in:
@@ -8,7 +8,7 @@ case "$1" in
|
||||
new)
|
||||
if [ ! -f /etc/httpd/server.key ]; then
|
||||
echo "Generating https server key."
|
||||
/usr/bin/openssl genrsa -out /etc/httpd/server.key 1024
|
||||
/usr/bin/openssl genrsa -out /etc/httpd/server.key 4096
|
||||
fi
|
||||
echo "Generating CSR"
|
||||
/bin/cat /etc/certparams | sed "s/HOSTNAME/`hostname -f`/" | /usr/bin/openssl \
|
||||
|
||||
Reference in New Issue
Block a user