diff --git a/files/dhparams.sh b/files/dhparams.sh new file mode 100755 index 0000000000000000000000000000000000000000..eb97eb4dd0347760eed541a422940a33f2f46cc0 --- /dev/null +++ b/files/dhparams.sh @@ -0,0 +1,7 @@ +#!/bin/sh -e +if [ -f /etc/ssl/dhparams.pem ] +then + openssl dhparam -in /etc/ssl/dhparams.pem -text -noout | sed -n 's/Diffie-Hellman-Parameters: (\([0-9]*\) bit)/\1/p' +else + echo 0 +fi