X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/b1572b67782c0cc4279c1fec5679d9d09161cbbc..0a2e2a35c89156ee5fc1ad2a65d0e6251bacc70f:/tools/genssl.sh diff --git a/tools/genssl.sh b/tools/genssl.sh old mode 100644 new mode 100755 index 652d252..5e43548 --- a/tools/genssl.sh +++ b/tools/genssl.sh @@ -1,18 +1,15 @@ #!/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 +openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/test.key -out ../etc/test.cert + 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"; + ssl_private_key = "etc/test.key"; + ssl_cert = "etc/test.cert"; ssl_dh_params = "etc/dh.pem"; Enjoy using ssl.