]> jfr.im git - irc/rqf/shadowircd.git/blame - tools/genssl.sh
update TODO
[irc/rqf/shadowircd.git] / tools / genssl.sh
CommitLineData
b1572b67
WP
1#!/bin/sh
2echo "Generating certificate request .. "
0042c7a1
WP
3openssl req -new -nodes -out ../etc/req.pem
4
b1572b67 5echo "Generating self-signed certificate .. "
0042c7a1
WP
6openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem
7
b1572b67 8echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
0042c7a1 9openssl dhparam -out ../etc/dh.pem 1024
b1572b67
WP
10
11echo "
0042c7a1 12Now change these lines in the IRCd config file:
b1572b67
WP
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"