0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-07 11:08:34 +02:00
construct/tools/genssl.sh

20 lines
582 B
Bash
Raw Normal View History

2008-04-25 21:46:24 +02:00
#!/bin/sh
echo "Generating certificate request .. "
openssl req -new -nodes -out req.pem
echo "Generating self-signed certificate .. "
openssl req -x509 -days 365 -in req.pem -key privkey.pem -out cert.pem
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
openssl dhparam -out dh.pem 2048
mv privkey.pem rsa.key
echo "
Now copy rsa.key, cert.pem and dh.pem into your IRCd's etc/ folder,
then change these lines in the ircd.conf file:
ssl_private_key = "etc/rsa.key";
ssl_cert = "etc/cert.pem";
ssl_dh_params = "etc/dh.pem";
Enjoy using ssl.
"