Add a config option to enable certificate management
This commit is contained in:
parent
c15cab7ed6
commit
0d0377ebfb
|
@ -846,6 +846,11 @@ $CONFIG = array(
|
||||||
'config' => '/absolute/location/of/openssl.cnf',
|
'config' => '/absolute/location/of/openssl.cnf',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allow the configuration of system wide trusted certificates
|
||||||
|
*/
|
||||||
|
'enable_certificate_management' => false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Memory caching backend configuration
|
* Memory caching backend configuration
|
||||||
*
|
*
|
||||||
|
|
|
@ -158,12 +158,14 @@ $template->assign('OutdatedCacheWarning', $outdatedCaches);
|
||||||
// add hardcoded forms from the template
|
// add hardcoded forms from the template
|
||||||
$forms = OC_App::getForms('admin');
|
$forms = OC_App::getForms('admin');
|
||||||
|
|
||||||
$certificatesTemplate = new OC_Template('settings', 'certificates');
|
if ($config->getSystemValue('enable_certificate_management', false)) {
|
||||||
$certificatesTemplate->assign('type', 'admin');
|
$certificatesTemplate = new OC_Template('settings', 'certificates');
|
||||||
$certificatesTemplate->assign('uploadRoute', 'settings.Certificate.addSystemRootCertificate');
|
$certificatesTemplate->assign('type', 'admin');
|
||||||
$certificatesTemplate->assign('certs', $certificateManager->listCertificates());
|
$certificatesTemplate->assign('uploadRoute', 'settings.Certificate.addSystemRootCertificate');
|
||||||
$certificatesTemplate->assign('urlGenerator', $urlGenerator);
|
$certificatesTemplate->assign('certs', $certificateManager->listCertificates());
|
||||||
$forms[] = $certificatesTemplate->fetchPage();
|
$certificatesTemplate->assign('urlGenerator', $urlGenerator);
|
||||||
|
$forms[] = $certificatesTemplate->fetchPage();
|
||||||
|
}
|
||||||
|
|
||||||
$formsAndMore = array();
|
$formsAndMore = array();
|
||||||
if ($request->getServerProtocol() !== 'https' || !OC_Util::isAnnotationsWorking() ||
|
if ($request->getServerProtocol() !== 'https' || !OC_Util::isAnnotationsWorking() ||
|
||||||
|
|
Loading…
Reference in New Issue