summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 17:07:26 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 17:07:26 -0500
commitf8a36d9587d33593a6d2b4a90f6fd379adf3c9e4 (patch)
treee5bb8da9ba1571f390e11b7c99b104684948b0a2
parentc3b70489031f543a83ab17cb7b4def8496c850fb (diff)
downloadpfsense-f8a36d9587d33593a6d2b4a90f6fd379adf3c9e4.zip
pfsense-f8a36d9587d33593a6d2b4a90f6fd379adf3c9e4.tar.gz
Setup a_cert and a_ca for write_config() Ticket #63
-rw-r--r--etc/inc/system.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index abfa7ef..c6234d8 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -627,6 +627,12 @@ function system_webgui_start() {
// 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($config['system']['ca']))
+ $config['system']['ca'] = array();
+ $a_ca =& $config['system']['ca'];
+ if (!is_array($config['system']['cert']))
+ $config['system']['cert'] = array();
+ $a_cert =& $config['system']['cert'];
echo "Importaing default SSL Certificate...";
$cert_file = "/etc/default_ssl_certs/pfSense_webConfigurator_HTTPS_Certificate.crt";
$key_file = "/etc/default_ssl_certs/pfSense_webConfigurator_HTTPS_Certificate.key";
OpenPOWER on IntegriCloud