]> jfr.im git - solanum.git/blob - tools/genssl.sh
Change default --with-nicklen to 31, like atheme-services.
[solanum.git] / tools / genssl.sh
1 #!/bin/sh
2 echo "Generating self-signed certificate .. "
3 openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/ssl.key -out ../etc/ssl.cert
4
5 echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
6 openssl dhparam -out ../etc/dh.pem 1024
7
8 echo "
9 Now change these lines in the IRCd config file:
10
11 ssl_private_key = "etc/ssl.key";
12 ssl_cert = "etc/ssl.cert";
13 ssl_dh_params = "etc/dh.pem";
14
15 Enjoy using ssl.
16 "