]>
Commit | Line | Data |
---|---|---|
828a2e6a AC |
1 | #!/bin/sh |
2 | echo "Generating certificate request .. " | |
9d129b8a AC |
3 | openssl req -new -nodes -out ../etc/req.pem |
4 | ||
828a2e6a | 5 | echo "Generating self-signed certificate .. " |
9d129b8a AC |
6 | openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem |
7 | ||
828a2e6a | 8 | echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. " |
9d129b8a | 9 | openssl dhparam -out ../etc/dh.pem 1024 |
828a2e6a AC |
10 | |
11 | echo " | |
9d129b8a | 12 | Now change these lines in the IRCd config file: |
828a2e6a AC |
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 | " |