0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 16:52:44 +01:00
construct/tools/genssl.sh

20 lines
525 B
Bash
Raw Normal View History

2008-04-25 21:46:24 +02:00
#!/bin/sh
echo "Generating certificate request .. "
2008-04-25 21:52:17 +02:00
openssl req -new -nodes -out ../etc/req.pem
2008-04-25 21:46:24 +02:00
echo "Generating self-signed certificate .. "
2008-04-25 21:52:17 +02:00
openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem
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/rsa.key";
ssl_cert = "etc/cert.pem";
ssl_dh_params = "etc/dh.pem";
Enjoy using ssl.
"