mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
CA/CERT Move
This commit is contained in:
parent
4e990e1e20
commit
b4e6524c16
@ -62,7 +62,7 @@ $pconfig['enablesshd'] = $config['system']['enablesshd'];
|
||||
$pconfig['sshport'] = $config['system']['ssh']['port'];
|
||||
$pconfig['sshdkeyonly'] = isset($config['system']['ssh']['sshdkeyonly']);
|
||||
|
||||
$a_cert =& $config['system']['cert'];
|
||||
$a_cert =& $config['cert'];
|
||||
|
||||
$certs_available = false;
|
||||
if (is_array($a_cert) && count($a_cert))
|
||||
|
||||
@ -52,15 +52,15 @@ $id = $_GET['id'];
|
||||
if (isset($_POST['id']))
|
||||
$id = $_POST['id'];
|
||||
|
||||
if (!is_array($config['system']['ca']))
|
||||
$config['system']['ca'] = array();
|
||||
if (!is_array($config['ca']))
|
||||
$config['ca'] = array();
|
||||
|
||||
$a_ca =& $config['system']['ca'];
|
||||
$a_ca =& $config['ca'];
|
||||
|
||||
if (!is_array($config['system']['cert']))
|
||||
$config['system']['cert'] = array();
|
||||
if (!is_array($config['cert']))
|
||||
$config['cert'] = array();
|
||||
|
||||
$a_cert =& $config['system']['cert'];
|
||||
$a_cert =& $config['cert'];
|
||||
|
||||
$act = $_GET['act'];
|
||||
if ($_POST['act'])
|
||||
|
||||
@ -53,15 +53,15 @@ $id = $_GET['id'];
|
||||
if (isset($_POST['id']))
|
||||
$id = $_POST['id'];
|
||||
|
||||
if (!is_array($config['system']['ca']))
|
||||
$config['system']['ca'] = array();
|
||||
if (!is_array($config['ca']))
|
||||
$config['ca'] = array();
|
||||
|
||||
$a_ca =& $config['system']['ca'];
|
||||
$a_ca =& $config['ca'];
|
||||
|
||||
if (!is_array($config['system']['cert']))
|
||||
$config['system']['cert'] = array();
|
||||
if (!is_array($config['cert']))
|
||||
$config['cert'] = array();
|
||||
|
||||
$a_cert =& $config['system']['cert'];
|
||||
$a_cert =& $config['cert'];
|
||||
|
||||
$internal_ca_count = 0;
|
||||
foreach ($a_ca as $ca)
|
||||
|
||||
@ -674,8 +674,8 @@ function sshkeyClicked(obj) {
|
||||
</tr>
|
||||
|
||||
<?php else : ?>
|
||||
<?php if (is_array($config['system']['ca']) && count($config['system']['ca']) > 0): ?>
|
||||
<?php $i = 0; foreach( $config['system']['ca'] as $ca) {
|
||||
<?php if (is_array($config['ca']) && count($config['ca']) > 0): ?>
|
||||
<?php $i = 0; foreach( $config['ca'] as $ca) {
|
||||
if (!$ca['prv'])
|
||||
continue;
|
||||
$i++;
|
||||
@ -706,7 +706,7 @@ function sshkeyClicked(obj) {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' id='caref' class="formselect" onChange='internalca_change()'>
|
||||
<?php
|
||||
foreach( $config['system']['ca'] as $ca):
|
||||
foreach( $config['ca'] as $ca):
|
||||
if (!$ca['prv'])
|
||||
continue;
|
||||
?>
|
||||
|
||||
@ -53,10 +53,10 @@ if (!is_array($config['system']['user']))
|
||||
|
||||
$a_user =& $config['system']['user'];
|
||||
|
||||
if (!is_array($config['system']['ca']))
|
||||
$config['system']['ca'] = array();
|
||||
if (!is_array($config['ca']))
|
||||
$config['ca'] = array();
|
||||
|
||||
$a_ca =& $config['system']['ca'];
|
||||
$a_ca =& $config['ca'];
|
||||
|
||||
$internal_ca_count = 0;
|
||||
foreach ($a_ca as $ca)
|
||||
|
||||
@ -702,7 +702,7 @@ function dpdchkbox_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='certref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['cert'] as $cert):
|
||||
foreach ($config['cert'] as $cert):
|
||||
$selected = "";
|
||||
if ($pconfig['certref'] == $cert['refid'])
|
||||
$selected = "selected";
|
||||
@ -721,7 +721,7 @@ function dpdchkbox_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['ca'] as $ca):
|
||||
foreach ($config['ca'] as $ca):
|
||||
$selected = "";
|
||||
if ($pconfig['caref'] == $ca['refid'])
|
||||
$selected = "selected";
|
||||
|
||||
@ -610,7 +610,7 @@ function autotls_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['ca'] as $ca):
|
||||
foreach ($config['ca'] as $ca):
|
||||
$selected = "";
|
||||
if ($pconfig['caref'] == $ca['refid'])
|
||||
$selected = "selected";
|
||||
@ -625,7 +625,7 @@ function autotls_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='certref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['cert'] as $cert):
|
||||
foreach ($config['cert'] as $cert):
|
||||
$selected = "";
|
||||
if ($pconfig['certref'] == $cert['refid'])
|
||||
$selected = "selected";
|
||||
|
||||
@ -698,7 +698,7 @@ function netbios_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['ca'] as $ca):
|
||||
foreach ($config['ca'] as $ca):
|
||||
$selected = "";
|
||||
if ($pconfig['caref'] == $ca['refid'])
|
||||
$selected = "selected";
|
||||
@ -713,7 +713,7 @@ function netbios_change() {
|
||||
<td width="78%" class="vtable">
|
||||
<select name='certref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['system']['cert'] as $cert):
|
||||
foreach ($config['cert'] as $cert):
|
||||
$selected = "";
|
||||
if (strstr($cert['name'], "webConfigurator"))
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user