Add check for missing certificate file

This commit is contained in:
seven 2020-09-28 03:08:09 +01:00
parent 701023bf2b
commit a9ce2ae907

View File

@ -35,6 +35,8 @@ class Gemini {
die("{$this->log_file} is not writable."); 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) { function parse_request($request) {