]> jfr.im git - irc/rqf/shadowircd.git/blob - tools/genssl.sh
Add operspy /topic.
[irc/rqf/shadowircd.git] / tools / genssl.sh
1 #!/bin/sh
2 echo "Generating self-signed certificate .. "
3 openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/test.key -out ../etc/test.cert
4
5 echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
6 openssl dhparam -out ../etc/dh.pem 1024
7
8 echo "
9 Now change these lines in the IRCd config file:
10
11 ssl_private_key = "etc/test.key";
12 ssl_cert = "etc/test.cert";
13 ssl_dh_params = "etc/dh.pem";
14
15 Enjoy using ssl.
16 "