From 5c4d55084f8c7cb2bb5ca5f81ecbd82afd1fdd18 Mon Sep 17 00:00:00 2001
From: laking <laking@ispconfig3>
Date: Sat, 02 Apr 2011 13:25:25 -0400
Subject: [PATCH] Implemented local CA certificate signing.
---
install/update.php | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/install/update.php b/install/update.php
index 17f6c3c..f5b2380 100644
--- a/install/update.php
+++ b/install/update.php
@@ -303,6 +303,20 @@
//}
}
+ //** Configure CA
+ if(strtolower($inst->simple_query('Should this installation use a local CA to default-sign certificates?',array('y','n'),'n')) == 'y') {
+ $conf['CA-enabled'] = true;
+ $conf['CA-path'] = $inst->free_query('Path to the CA folder: ', $conf['CA-path']);
+ $conf['CA-pass'] = $inst->free_query('Root Certificate Passphrase', '');
+ if(!is_file($conf['CA-path'].'/openssl.cnf'))
+ {
+ swriteln('ERROR. '.$conf['CA-path'].'/openssl.cnf not found.');
+ $conf['CA-enabled'] = false;
+ }
+ //$inst->configure_ca();
+ } else {$conf['CA-enabled'] = false;};
+
+
//** Configure ISPConfig
swriteln('Updating ISPConfig');
--
Gitblit v1.9.1