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