]> jfr.im git - vpn-prov.git/blob - easy-rsa/build-dh
4beb127fd8459f0a82ccb890f8f2112dd2b46123
[vpn-prov.git] / easy-rsa / build-dh
1 #!/bin/sh
2
3 # Build Diffie-Hellman parameters for the server side
4 # of an SSL/TLS connection.
5
6 if [ -d $KEY_DIR ] && [ $KEY_SIZE ]; then
7 $OPENSSL dhparam -out ${KEY_DIR}/dh${KEY_SIZE}.pem ${KEY_SIZE}
8 else
9 echo 'Please source the vars script first (i.e. "source ./vars")'
10 echo 'Make sure you have edited it to reflect your configuration.'
11 fi