Cipher suite test
$(openssl version -a | htmlescape)
EOF
fi
# Begin nginx config generator
get_common() {
local auth=$1
local port=${2:-$portbase}
local crtfile keyfile dhpfile
case $auth in
RSA)
crtfile=$rsa_pub
keyfile=$rsa_prv
;;
ECDH)
# Note: NSS does not support all cipher suites from OpenSSL, but OpenSSL
# cannot work with ECDH-RSA using th below certificates.
crtfile=$ecc_pub
keyfile=$ecc_prv
#dhpfile=$dh_params
;;
DSS)
crtfile=$dsa_pub
keyfile=$dsa_prv
;;
ECDSA)
crtfile=$ecc_pub
keyfile=$ecc_prv
#dhpfile=$dh_params
;;
PSK)
#echo "Unknown Au=$auth - using RSA" >&2
crtfile=$rsa_pub
keyfile=$rsa_prv
;;
*)
echo "Unknown Au=$auth - using RSA" >&2
crtfile=$rsa_pub
keyfile=$rsa_prv
;;
esac
local listens l
listens=$(echo ${listen//PORT/$port} | tr ' ' '\n' | sort -u | tr '\n' ' ')
for l in $listens; do
echo " listen $l ssl;"
done
cat <document.domain='$domain'";
}
}
EOF
done
cat <