]>
Commit | Line | Data |
---|---|---|
b1572b67 WP |
1 | #!/bin/sh |
2 | echo "Generating certificate request .. " | |
3 | openssl req -new -nodes -out req.pem | |
4 | echo "Generating self-signed certificate .. " | |
5 | openssl req -x509 -days 365 -in req.pem -key privkey.pem -out cert.pem | |
6 | echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. " | |
7 | openssl dhparam -out dh.pem 2048 | |
8 | mv privkey.pem rsa.key | |
9 | ||
10 | echo " | |
11 | Now copy rsa.key, cert.pem and dh.pem into your IRCd's etc/ folder, | |
12 | then change these lines in the ircd.conf file: | |
13 | ||
14 | ssl_private_key = "etc/rsa.key"; | |
15 | ssl_cert = "etc/cert.pem"; | |
16 | ssl_dh_params = "etc/dh.pem"; | |
17 | ||
18 | Enjoy using ssl. | |
19 | " |