You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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