diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-06-26 00:00:25 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-06-26 00:00:25 +0200 |
commit | 539abb9e93e9657c136759116379f7182c78ea8c (patch) | |
tree | f78ce03a6225ad49c4e11cf9d2fc156c08d631e1 /make/opensslcert.pm | |
parent | eb084fc8b2d3938c42fb39890482f6ac60915507 (diff) | |
parent | 4e3d7a6e30eadf714483994681b8b2534229f4a8 (diff) |
Merge pull request #1063 from SaberUK/insp20+cert-warning
[2.0] Show a better warning when certtool/openssl are missing.
Diffstat (limited to 'make/opensslcert.pm')
-rw-r--r-- | make/opensslcert.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/make/opensslcert.pm b/make/opensslcert.pm index b8c9d164f..1bf27df15 100644 --- a/make/opensslcert.pm +++ b/make/opensslcert.pm @@ -32,6 +32,11 @@ our @EXPORT = qw(make_openssl_cert); sub make_openssl_cert() { + if (system 'openssl version >/dev/null 2>&1') + { + print "\e[1;31mCertificate generation failed:\e[0m unable to find 'openssl' in the PATH!\n"; + return; + } open (FH, ">openssl.template"); my $commonname = promptstring_s('What is the hostname of your server?', 'irc.example.com'); my $email = promptstring_s('What email address can you be contacted at?', 'example@example.com'); |