]> jfr.im git - solanum.git/blame - tools/genssl.sh
Fix viconf's dependencies on setup.h and config.h.
[solanum.git] / tools / genssl.sh
CommitLineData
828a2e6a 1#!/bin/sh
828a2e6a 2echo "Generating self-signed certificate .. "
f1e5a317 3openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/ssl.key -out ../etc/ssl.cert
9d129b8a 4
828a2e6a 5echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
9d129b8a 6openssl dhparam -out ../etc/dh.pem 1024
828a2e6a
AC
7
8echo "
9d129b8a 9Now change these lines in the IRCd config file:
828a2e6a 10
f1e5a317
JH
11 ssl_private_key = "etc/ssl.key";
12 ssl_cert = "etc/ssl.cert";
828a2e6a
AC
13 ssl_dh_params = "etc/dh.pem";
14
15Enjoy using ssl.
16"