]> jfr.im git - irc/rqf/shadowircd.git/blame - tools/genssl.sh
Fix small bug in the VERSION/RPL_MYINFO stuff, as pointed out by init.
[irc/rqf/shadowircd.git] / tools / genssl.sh
CommitLineData
b1572b67 1#!/bin/sh
b1572b67 2echo "Generating self-signed certificate .. "
ac10b333 3openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/ssl.key -out ../etc/ssl.cert
0042c7a1 4
b1572b67 5echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
0042c7a1 6openssl dhparam -out ../etc/dh.pem 1024
b1572b67
WP
7
8echo "
0042c7a1 9Now change these lines in the IRCd config file:
b1572b67 10
ac10b333
JH
11 ssl_private_key = "etc/ssl.key";
12 ssl_cert = "etc/ssl.cert";
b1572b67
WP
13 ssl_dh_params = "etc/dh.pem";
14
15Enjoy using ssl.
16"