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