generate some dhparams
This commit is contained in:
parent
f7447925af
commit
0e0a7ce6ec
2 changed files with 5 additions and 1 deletions
|
@ -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 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
|
#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
|
||||||
|
|
|
@ -19,7 +19,7 @@ if [ ! -f server.rsa.key ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "running stunnel"
|
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=$(pidof stunnel)
|
||||||
STUNNELPID=$!
|
STUNNELPID=$!
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue