summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 328e1d7..779c4b9 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -826,10 +826,10 @@ function system_webgui_start() {
if ($config['system']['webgui']['protocol'] == "https") {
// Ensure that we have a webConfigurator CERT
$cert =& lookup_cert($config['system']['webgui']['ssl-certref']);
- if(!is_array($cert) && !$cert['crt'] && !$cert['prv']) {
+ if(!is_array($cert) || !$cert['crt'] || !$cert['prv']) {
$cert = system_webgui_create_certificate();
- $crt = $cert['crt'];
- $key = $cert['prv'];
+ $crt = base64_decode($cert['crt']);
+ $key = base64_decode($cert['prv']);
} else {
$crt = base64_decode($cert['crt']);
$key = base64_decode($cert['prv']);
OpenPOWER on IntegriCloud