2008-04-25 19:46:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
echo "Generating self-signed certificate .. "
|
2010-11-13 21:07:54 +00:00
|
|
|
openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/ssl.key -out ../etc/ssl.cert
|
2008-04-25 19:52:17 +00:00
|
|
|
|
2008-04-25 19:46:24 +00:00
|
|
|
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
|
2008-04-25 19:52:17 +00:00
|
|
|
openssl dhparam -out ../etc/dh.pem 1024
|
2008-04-25 19:46:24 +00:00
|
|
|
|
|
|
|
echo "
|
2008-04-25 19:52:17 +00:00
|
|
|
Now change these lines in the IRCd config file:
|
2008-04-25 19:46:24 +00:00
|
|
|
|
2010-11-13 21:07:54 +00:00
|
|
|
ssl_private_key = "etc/ssl.key";
|
|
|
|
ssl_cert = "etc/ssl.cert";
|
2008-04-25 19:46:24 +00:00
|
|
|
ssl_dh_params = "etc/dh.pem";
|
|
|
|
|
|
|
|
Enjoy using ssl.
|
|
|
|
"
|