]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/opensslcert.pm
Merge pull request #1050 from Aviator45003/insp20
[user/henk/code/inspircd.git] / make / opensslcert.pm
index b8c9d164fbaff2ebfd99a146b916327878f7a7a8..1bf27df159f7f50993e3bb0c0ead13a5bb7a7bfd 100644 (file)
@@ -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');