Add check for missing certificate file
authorseven <seven@cygni>
Mon, 28 Sep 2020 02:08:09 +0000 (03:08 +0100)
committerseven <seven@cygni>
Mon, 28 Sep 2020 02:08:09 +0000 (03:08 +0100)
gemini.class.php

index 233a6c7ea564617ea7a528c6cf49bf1b543b9a2d..99e37d33a2ce09adb270ac9a207fa812b8f022cb 100644 (file)
@@ -35,6 +35,8 @@ class Gemini {
                                die("{$this->log_file} is not writable.");
                        }
                }
+               if(!is_readable($this->certificate_file))
+                       die("Certificate file {$this->certificate_file} not readable.");
        }
 
        function parse_request($request) {