From 4e3d7a6e30eadf714483994681b8b2534229f4a8 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 22 May 2015 04:22:52 +0100 Subject: Show a better warning when certtool/openssl are missing. --- make/opensslcert.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'make/opensslcert.pm') 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'); -- cgit v1.2.3