summaryrefslogtreecommitdiff
path: root/tools/genssl
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-08 19:22:46 +0100
committerattilamolnar <attilamolnar@hush.com>2013-04-08 21:26:14 +0200
commit745378a3290fe70dc38e7bd98ec34b740a0410a7 (patch)
tree5c7c6e52ed88ab47332b47e03fe02f820c880b03 /tools/genssl
parentf16d82607c5f26d9b7892b93dbad1aaf44f2c601 (diff)
Add support for generating dhparams with GnuTLS to genssl.
Diffstat (limited to 'tools/genssl')
-rwxr-xr-xtools/genssl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/genssl b/tools/genssl
index 9bc66669f..b658efb11 100755
--- a/tools/genssl
+++ b/tools/genssl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
#
# InspIRCd -- Internet Relay Chat Daemon
#
@@ -85,6 +85,7 @@ __GNUTLS_END__
$status ||= system "$certtool --version >/dev/null 2>&1";
$status ||= system "$certtool --generate-privkey --outfile key.pem";
$status ||= system "$certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem --template $tmp";
+ $status ||= system "$certtool --generate-dh-params --bits 2048 --outfile dhparams.pem";
} elsif (lc $ARGV[0] eq 'openssl') {
my $tmp = new File::Temp();
print $tmp <<__OPENSSL_END__;