From 828a2e6ad5880925fa5ad34d36469d112b5772d8 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 25 Apr 2008 14:46:24 -0500 Subject: [PATCH] Add SSL generation tool. --- tools/genssl.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/genssl.sh diff --git a/tools/genssl.sh b/tools/genssl.sh new file mode 100644 index 00000000..652d252a --- /dev/null +++ b/tools/genssl.sh @@ -0,0 +1,19 @@ +#!/bin/sh +echo "Generating certificate request .. " +openssl req -new -nodes -out req.pem +echo "Generating self-signed certificate .. " +openssl req -x509 -days 365 -in req.pem -key privkey.pem -out cert.pem +echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. " +openssl dhparam -out dh.pem 2048 +mv privkey.pem rsa.key + +echo " +Now copy rsa.key, cert.pem and dh.pem into your IRCd's etc/ folder, +then change these lines in the ircd.conf file: + + ssl_private_key = "etc/rsa.key"; + ssl_cert = "etc/cert.pem"; + ssl_dh_params = "etc/dh.pem"; + +Enjoy using ssl. +"