Install it into /bin
This commit is contained in:
parent
0253849e55
commit
9d129b8ab0
2 changed files with 9 additions and 7 deletions
|
@ -26,7 +26,7 @@ libexecdir = @libexecdir@
|
||||||
confdir = @confdir@
|
confdir = @confdir@
|
||||||
localstatedir = @localstatedir@
|
localstatedir = @localstatedir@
|
||||||
|
|
||||||
PROGS = viconf mkpasswd convertilines convertklines
|
PROGS = viconf mkpasswd convertilines convertklines genssl.sh
|
||||||
|
|
||||||
all: $(PROGS)
|
all: $(PROGS)
|
||||||
|
|
||||||
|
@ -44,6 +44,8 @@ convertilines: convertilines.c
|
||||||
convertklines: convertklines.c
|
convertklines: convertklines.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
|
||||||
|
|
||||||
|
genssl.sh:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
|
$(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
|
||||||
|
|
||||||
|
|
12
tools/genssl.sh
Normal file → Executable file
12
tools/genssl.sh
Normal file → Executable file
|
@ -1,15 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "Generating certificate request .. "
|
echo "Generating certificate request .. "
|
||||||
openssl req -new -nodes -out req.pem
|
openssl req -new -nodes -out ../etc/req.pem
|
||||||
|
|
||||||
echo "Generating self-signed certificate .. "
|
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 .. "
|
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
|
||||||
openssl dhparam -out dh.pem 2048
|
openssl dhparam -out ../etc/dh.pem 1024
|
||||||
mv privkey.pem rsa.key
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
Now copy rsa.key, cert.pem and dh.pem into your IRCd's etc/ folder,
|
Now change these lines in the IRCd config file:
|
||||||
then change these lines in the ircd.conf file:
|
|
||||||
|
|
||||||
ssl_private_key = "etc/rsa.key";
|
ssl_private_key = "etc/rsa.key";
|
||||||
ssl_cert = "etc/cert.pem";
|
ssl_cert = "etc/cert.pem";
|
||||||
|
|
Loading…
Reference in a new issue