summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_advanced_create_certs.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_create_certs.php b/usr/local/www/system_advanced_create_certs.php
index 12c1707..1727fc3 100755
--- a/usr/local/www/system_advanced_create_certs.php
+++ b/usr/local/www/system_advanced_create_certs.php
@@ -31,9 +31,11 @@
require("guiconfig.inc");
-$fd = fopen("/var/etc/ssl/openssl.cnf", "r");
-$openssl = fread($fd,8096);
-fclose($fd);
+if(file_exists("/var/etc/ssl/openssl.cnf")) {
+ $fd = fopen("/var/etc/ssl/openssl.cnf", "r");
+ $openssl = fread($fd,8096);
+ fclose($fd);
+}
/* Lets match the fileds in the read in file and
populate the variables for the form */
OpenPOWER on IntegriCloud