]>
Commit | Line | Data |
---|---|---|
828a2e6a | 1 | #!/bin/sh |
828a2e6a | 2 | echo "Generating self-signed certificate .. " |
f1e5a317 | 3 | openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/ssl.key -out ../etc/ssl.cert |
9d129b8a | 4 | |
828a2e6a | 5 | echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. " |
9d129b8a | 6 | openssl dhparam -out ../etc/dh.pem 1024 |
828a2e6a AC |
7 | |
8 | echo " | |
9d129b8a | 9 | Now change these lines in the IRCd config file: |
828a2e6a | 10 | |
f1e5a317 JH |
11 | ssl_private_key = "etc/ssl.key"; |
12 | ssl_cert = "etc/ssl.cert"; | |
828a2e6a AC |
13 | ssl_dh_params = "etc/dh.pem"; |
14 | ||
15 | Enjoy using ssl. | |
16 | " |