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/install.php | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/install/install.php b/install/install.php
index e5785fa..7b7afed 100644
--- a/install/install.php
+++ b/install/install.php
@@ -438,6 +438,19 @@
$inst->configure_firewall();
}
+ //** 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 :-)
if(strtolower($inst->simple_query('Install ISPConfig Web Interface',array('y','n'),'y')) == 'y') {
swriteln('Installing ISPConfig');
--
Gitblit v1.9.1