From 9d129b8ab0ad8ce11547b9eb01c6a8d9f08adea2 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 25 Apr 2008 14:52:17 -0500 Subject: [PATCH] Install it into /bin --- tools/Makefile.in | 4 +++- tools/genssl.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) mode change 100644 => 100755 tools/genssl.sh diff --git a/tools/Makefile.in b/tools/Makefile.in index f942c7763..252130e5b 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -26,7 +26,7 @@ libexecdir = @libexecdir@ confdir = @confdir@ localstatedir = @localstatedir@ -PROGS = viconf mkpasswd convertilines convertklines +PROGS = viconf mkpasswd convertilines convertklines genssl.sh all: $(PROGS) @@ -44,6 +44,8 @@ convertilines: convertilines.c convertklines: convertklines.c $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS) +genssl.sh: + clean: $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines diff --git a/tools/genssl.sh b/tools/genssl.sh old mode 100644 new mode 100755 index 652d252a6..a55ae97ae --- a/tools/genssl.sh +++ b/tools/genssl.sh @@ -1,15 +1,15 @@ #!/bin/sh echo "Generating certificate request .. " -openssl req -new -nodes -out req.pem +openssl req -new -nodes -out ../etc/req.pem + echo "Generating self-signed certificate .. " -openssl req -x509 -days 365 -in req.pem -key privkey.pem -out cert.pem +openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem + echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. " -openssl dhparam -out dh.pem 2048 -mv privkey.pem rsa.key +openssl dhparam -out ../etc/dh.pem 1024 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: +Now change these lines in the IRCd config file: ssl_private_key = "etc/rsa.key"; ssl_cert = "etc/cert.pem";