]> jfr.im git - irc/rqf/shadowircd.git/blame - tools/genssl.sh
Add SSL generation tool.
[irc/rqf/shadowircd.git] / tools / genssl.sh
CommitLineData
b1572b67
WP
1#!/bin/sh
2echo "Generating certificate request .. "
3openssl req -new -nodes -out req.pem
4echo "Generating self-signed certificate .. "
5openssl req -x509 -days 365 -in req.pem -key privkey.pem -out cert.pem
6echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
7openssl dhparam -out dh.pem 2048
8mv privkey.pem rsa.key
9
10echo "
11Now copy rsa.key, cert.pem and dh.pem into your IRCd's etc/ folder,
12then change these lines in the ircd.conf file:
13
14 ssl_private_key = "etc/rsa.key";
15 ssl_cert = "etc/cert.pem";
16 ssl_dh_params = "etc/dh.pem";
17
18Enjoy using ssl.
19"