Permalink
Browse files

Fixed certificate issue.

  • Loading branch information...
cubiclesoft committed Oct 8, 2017
1 parent 0bda497 commit f231263fc96bf61c3bcaf019a962b9bc16a9cde9
Showing with 3 additions and 7 deletions.
  1. +1 −5 .gitignore
  2. +2 −2 install.php
@@ -1,8 +1,4 @@
/config.*
/cert.key
/cert.pem
/main.db
/main.db-journal
/data/*
/test.php
/user_init/*
/server_exts/scripts.php
@@ -184,8 +184,8 @@
}
if (!isset($config["sslopts"])) $config["sslopts"] = array();
if (!isset($config["sslopts"]["local_cert"]) && file_exists($rootpath . "/data/cert.pem")) $config["sslopts"]["local_cert"] = $rootpath . "/data/cert.pem";
if (!isset($config["sslopts"]["local_pk"]) && file_exists($rootpath . "/data/cert.key")) $config["sslopts"]["local_pk"] = $rootpath . "/data/cert.key";
if ((!isset($config["sslopts"]["local_cert"]) || !file_exists($config["sslopts"]["local_cert"])) && file_exists($rootpath . "/data/cert.pem")) $config["sslopts"]["local_cert"] = $rootpath . "/data/cert.pem";
if ((!isset($config["sslopts"]["local_pk"]) || !file_exists($config["sslopts"]["local_pk"])) && file_exists($rootpath . "/data/cert.key")) $config["sslopts"]["local_pk"] = $rootpath . "/data/cert.key";
CSS_SaveConfig($config);

0 comments on commit f231263

Please sign in to comment.