]> jfr.im git - solanum.git/blame - tools/genssl.sh
olist: do not send operspy notices for nonexistent channels
[solanum.git] / tools / genssl.sh
CommitLineData
828a2e6a
AC
1#!/bin/sh
2echo "Generating certificate request .. "
9d129b8a
AC
3openssl req -new -nodes -out ../etc/req.pem
4
828a2e6a 5echo "Generating self-signed certificate .. "
9d129b8a
AC
6openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem
7
828a2e6a 8echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
9d129b8a 9openssl dhparam -out ../etc/dh.pem 1024
828a2e6a
AC
10
11echo "
9d129b8a 12Now change these lines in the IRCd config file:
828a2e6a
AC
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"