Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
b6376411
Commit
b6376411
authored
Apr 04, 2011
by
laking
Browse files
Update on certificte CA-signing. Moved config to control panel.
parent
47e2cbd5
Changes
14
Hide whitespace changes
Inline
Side-by-side
install/dist/conf/centos52.conf.php
View file @
b6376411
...
...
@@ -186,6 +186,4 @@ $conf['cron']['init_script'] = 'crond';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/pki/CA'
;
?>
install/dist/conf/centos53.conf.php
View file @
b6376411
...
...
@@ -186,6 +186,4 @@ $conf['cron']['init_script'] = 'crond';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/pki/CA'
;
?>
install/dist/conf/debian40.conf.php
View file @
b6376411
...
...
@@ -191,7 +191,5 @@ $conf['cron']['init_script'] = 'cron';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/ssl'
;
?>
install/dist/conf/debian60.conf.php
View file @
b6376411
...
...
@@ -191,7 +191,5 @@ $conf['cron']['init_script'] = 'cron';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/ssl'
;
?>
install/dist/conf/fedora9.conf.php
View file @
b6376411
...
...
@@ -186,6 +186,4 @@ $conf['cron']['init_script'] = 'crond';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/pki/CA'
;
?>
install/dist/conf/gentoo.conf.php
View file @
b6376411
...
...
@@ -203,6 +203,4 @@ $conf['cron']['crontab_dir'] = '/etc/cron.d';
$conf
[
'cron'
][
'group'
]
=
'cron'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/ssl'
;
?>
install/dist/conf/opensuse110.conf.php
View file @
b6376411
...
...
@@ -184,8 +184,6 @@ $conf['vlogger']['config_dir'] = '/etc';
//* 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'
;;
?>
install/dist/conf/opensuse112.conf.php
View file @
b6376411
...
...
@@ -186,6 +186,4 @@ $conf['cron']['init_script'] = 'cron';
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
$conf
[
'CA-path'
]
=
'/etc/ssl'
;
?>
install/dist/lib/fedora.lib.php
View file @
b6376411
...
...
@@ -690,10 +690,6 @@ class installer_dist extends installer_base {
$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
...
...
install/dist/lib/gentoo.lib.php
View file @
b6376411
...
...
@@ -660,10 +660,6 @@ class installer extends installer_base
$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
);
...
...
install/dist/lib/opensuse.lib.php
View file @
b6376411
...
...
@@ -704,10 +704,6 @@ class installer_dist extends installer_base {
$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
...
...
install/install.php
View file @
b6376411
...
...
@@ -437,20 +437,6 @@ if($install_mode == 'standard') {
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'
);
...
...
install/lib/installer_base.lib.php
View file @
b6376411
...
...
@@ -1348,12 +1348,8 @@ class installer_base {
$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
...
...
install/update.php
View file @
b6376411
...
...
@@ -303,20 +303,6 @@ if($reconfigure_services_answer == 'yes') {
//}
}
//** 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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment