Make genssl.sh work.
Submitted by jdhore.
This commit is contained in:
parent
d60a42a27f
commit
03c1fe2153
1 changed files with 3 additions and 6 deletions
|
@ -1,9 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "Generating certificate request .. "
|
|
||||||
openssl req -new -nodes -out ../etc/req.pem
|
|
||||||
|
|
||||||
echo "Generating self-signed certificate .. "
|
echo "Generating self-signed certificate .. "
|
||||||
openssl req -x509 -days 365 -in ../etc/req.pem -key ../etc/rsa.key -out ../etc/cert.pem
|
openssl req -x509 -nodes -newkey rsa:1024 -keyout ../etc/test.key -out ../etc/test.cert
|
||||||
|
|
||||||
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
|
echo "Generating Diffie-Hellman file for secure SSL/TLS negotiation .. "
|
||||||
openssl dhparam -out ../etc/dh.pem 1024
|
openssl dhparam -out ../etc/dh.pem 1024
|
||||||
|
@ -11,8 +8,8 @@ openssl dhparam -out ../etc/dh.pem 1024
|
||||||
echo "
|
echo "
|
||||||
Now change these lines in the IRCd config file:
|
Now change these lines in the IRCd config file:
|
||||||
|
|
||||||
ssl_private_key = "etc/rsa.key";
|
ssl_private_key = "etc/test.key";
|
||||||
ssl_cert = "etc/cert.pem";
|
ssl_cert = "etc/test.cert";
|
||||||
ssl_dh_params = "etc/dh.pem";
|
ssl_dh_params = "etc/dh.pem";
|
||||||
|
|
||||||
Enjoy using ssl.
|
Enjoy using ssl.
|
||||||
|
|
Loading…
Reference in a new issue