0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00
construct/tools/genssl.sh
Jilles Tjoelker 03c1fe2153 Make genssl.sh work.
Submitted by jdhore.
2008-08-29 01:34:18 +02:00

16 lines
440 B
Bash
Executable file

#!/bin/sh
echo "Generating self-signed certificate .. "
openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/test.key -out ../etc/test.cert
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
openssl dhparam -out ../etc/dh.pem 1024
echo "
Now change these lines in the IRCd config file:
ssl_private_key = "etc/test.key";
ssl_cert = "etc/test.cert";
ssl_dh_params = "etc/dh.pem";
Enjoy using ssl.
"