0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-20 00:33:15 +01:00
construct/tools/genssl.sh

17 lines
440 B
Bash
Raw Normal View History

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