generate some dhparams

This commit is contained in:
Vincent Hanquez 2013-12-29 07:14:08 +00:00
parent f7447925af
commit 0e0a7ce6ec
2 changed files with 5 additions and 1 deletions

View file

@ -83,3 +83,7 @@ openssl gendsa server.dsa.params -out server.dsa.key
openssl req -config server.dsa.req -key server.dsa.key -new -nodes -out server.dsa.crt -extensions v3_req -x509
#openssl x509 -req -days 1000 -in server.dsa.req -signkey server.dsa.key -out server.dsa.crt
cat > dhparams << EOF
Params {params_p = 10719171887047462424462377894372628069923269478878247097091798192644237231396492564025928794300391495193820465477 538346762614835402050938824463012084274379, params_g = 2}
EOF

View file

@ -19,7 +19,7 @@ if [ ! -f server.rsa.key ]; then
fi
echo "running stunnel"
${STUNNEL} server --certificate server.rsa.crt --key server.rsa.key --certificate server.dsa.crt --key server.dsa.key --source=localhost:${PORT} --destination-type=fd --debug --destination=2 > stunnel-gnutls-log 2>&1 &
${STUNNEL} server --dhparams dhparams --certificate server.rsa.crt --key server.rsa.key --certificate server.dsa.crt --key server.dsa.key --source=localhost:${PORT} --destination-type=fd --debug --destination=2 > stunnel-gnutls-log 2>&1 &
stunnelpid=$(pidof stunnel)
STUNNELPID=$!
sleep 1