Update on certificte CA-signing. Moved config to control panel.
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/pki/CA'; |
| | | |
| | | ?> |
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/pki/CA'; |
| | | |
| | | ?> |
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d';
|
| | | $conf['cron']['wget'] = '/usr/bin/wget';
|
| | | |
| | | $conf['CA-path'] = '/etc/ssl'; |
| | | |
| | |
|
| | | ?>
|
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d';
|
| | | $conf['cron']['wget'] = '/usr/bin/wget';
|
| | | |
| | | $conf['CA-path'] = '/etc/ssl'; |
| | | |
| | |
|
| | | ?>
|
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/pki/CA'; |
| | | |
| | | ?> |
| | |
| | | $conf['cron']['group'] = 'cron'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/ssl'; |
| | | |
| | | ?> |
| | |
| | | //* cron |
| | | $conf['cron']['init_script'] = 'cron'; |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/ssl'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget';; |
| | | |
| | | ?> |
| | |
| | | $conf['cron']['crontab_dir'] = '/etc/cron.d'; |
| | | $conf['cron']['wget'] = '/usr/bin/wget'; |
| | | |
| | | $conf['CA-path'] = '/etc/ssl'; |
| | | |
| | | ?> |
| | |
| | | $content = str_replace('{ispconfig_log_priority}', $conf['ispconfig_log_priority'], $content); |
| | | $content = str_replace('{language}', $conf['language'], $content); |
| | | |
| | | if (!$conf['CA-enabled']) $content = str_replace('$conf[\'CA', '//$conf[\'CA', $content); |
| | | $content = str_replace('{CA-path}', $conf['CA-path'], $content); |
| | | $content = str_replace('{CA-pass}', $conf['CA-pass'], $content); |
| | | |
| | | wf("$install_dir/server/lib/$configfile", $content); |
| | | |
| | | //* Create the config file for remote-actions (but only, if it does not exist, because |
| | |
| | | |
| | | $this->write_config_file("$install_dir/interface/lib/$configfile", $content); |
| | | |
| | | if(!$conf['CA-enabled']) $content = str_replace('$conf[\'CA','//$conf[\'CA', $content); |
| | | $content = str_replace('{CA-path}', $conf['CA-path'], $content); |
| | | $content = str_replace('{CA-pass}', $conf['CA-pass'], $content); |
| | | |
| | | //* Create the config file for ISPConfig server |
| | | $this->write_config_file("$install_dir/server/lib/$configfile", $content); |
| | | |
| | |
| | | $content = str_replace('{ispconfig_log_priority}', $conf['ispconfig_log_priority'], $content); |
| | | $content = str_replace('{language}', $conf['language'], $content); |
| | | |
| | | if(!$conf['CA-enabled']) $content = str_replace('$conf[\'CA','//$conf[\'CA', $content); |
| | | $content = str_replace('{CA-path}', $conf['CA-path'], $content); |
| | | $content = str_replace('{CA-pass}', $conf['CA-pass'], $content); |
| | | |
| | | wf("$install_dir/server/lib/$configfile", $content); |
| | | |
| | | //* Create the config file for remote-actions (but only, if it does not exist, because |
| | |
| | | swriteln('Configuring Firewall');
|
| | | $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');
|
| | |
| | |
|
| | | $content = str_replace('{server_id}', $conf['server_id'], $content);
|
| | | $content = str_replace('{ispconfig_log_priority}', $conf['ispconfig_log_priority'], $content);
|
| | | $content = str_replace('{language}', $conf['language'], $content);
|
| | |
|
| | | if (!$conf['CA-enabled']) $content = str_replace('$conf[\'CA', '//$conf[\'CA', $content);
|
| | | $content = str_replace('{CA-path}', $conf['CA-path'], $content);
|
| | | $content = str_replace('{CA-pass}', $conf['CA-pass'], $content);
|
| | |
|
| | | $content = str_replace('{language}', $conf['language'], $content); |
| | | |
| | | wf($install_dir.'/server/lib/'.$configfile, $content);
|
| | |
|
| | | //* Create the config file for remote-actions (but only, if it does not exist, because
|
| | |
| | | //}
|
| | | }
|
| | |
|
| | | //** 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');
|
| | |
|