diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-20 22:06:14 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-20 22:06:14 +0000 |
commit | 619d5a1347cf7f557b373312b6f24a82af4cedd9 (patch) | |
tree | eca42f7387e3ea3e7770b172d409dd5201190b59 /make/gnutlscert.pm | |
parent | a3caa8ccd9a48064e7483100ae2b355c52421529 (diff) |
Fix gnutls cert generation failing. Thx owine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7479 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/gnutlscert.pm')
-rw-r--r-- | make/gnutlscert.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/make/gnutlscert.pm b/make/gnutlscert.pm index 517e08b1f..902555fce 100644 --- a/make/gnutlscert.pm +++ b/make/gnutlscert.pm @@ -106,9 +106,10 @@ ocsp_signing_key time_stamping_key __END__ close(FH); -system("certtool --generate-privkey --outfile key.pem") or return 1; -system("certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem --template certtool.template") or return 1; +if ( (my $status = system("certtool --generate-privkey --outfile key.pem")) ne 0) { return 1; } +if ( (my $status = system("certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem --template certtool.template")) ne 0) { return 1; } unlink("certtool.template"); +return 0; } 1; |