2015-12-22 16:42:28 +00:00
|
|
|
<div class="section">
|
2017-04-27 20:58:41 +00:00
|
|
|
<h2 data-anchor-name="ssl-root-certificate"><?php p($l->t('SSL Root Certificates')); ?></h2>
|
2015-12-22 16:42:28 +00:00
|
|
|
<table id="sslCertificate" class="grid" data-type="<?php p($_['type']); ?>">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php p($l->t('Common Name')); ?></th>
|
|
|
|
<th><?php p($l->t('Valid until')); ?></th>
|
|
|
|
<th><?php p($l->t('Issued By')); ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($_['certs'] as $rootCert): /**@var \OCP\ICertificate $rootCert */ ?>
|
2018-01-26 22:46:40 +00:00
|
|
|
<tr class="<?php echo $rootCert->isExpired() ? 'expired' : 'valid' ?>"
|
2015-12-22 16:42:28 +00:00
|
|
|
data-name="<?php p($rootCert->getName()) ?>">
|
|
|
|
<td class="rootCert"
|
|
|
|
title="<?php p($rootCert->getOrganization()) ?>">
|
|
|
|
<?php p($rootCert->getCommonName()) ?>
|
|
|
|
</td>
|
|
|
|
<td title="<?php p($l->t('Valid until %s', $l->l('date', $rootCert->getExpireDate()))) ?>">
|
|
|
|
<?php echo $l->l('date', $rootCert->getExpireDate()) ?>
|
|
|
|
</td>
|
|
|
|
<td title="<?php p($rootCert->getIssuerOrganization()) ?>">
|
|
|
|
<?php p($rootCert->getIssuerName()) ?>
|
|
|
|
</td>
|
|
|
|
<td <?php if ($rootCert != ''): ?>class="remove"
|
|
|
|
<?php else: ?>style="visibility:hidden;"
|
|
|
|
<?php endif; ?>><img alt="<?php p($l->t('Delete')); ?>"
|
|
|
|
title="<?php p($l->t('Delete')); ?>"
|
2016-06-23 11:39:28 +00:00
|
|
|
class="action"
|
2015-12-22 16:42:28 +00:00
|
|
|
src="<?php print_unescaped(image_path('core', 'actions/delete.svg')); ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<form class="uploadButton" method="post"
|
|
|
|
action="<?php p($_['urlGenerator']->linkToRoute($_['uploadRoute'])); ?>"
|
|
|
|
target="certUploadFrame">
|
|
|
|
<label for="rootcert_import" class="inlineblock button"
|
|
|
|
id="rootcert_import_button"><?php p($l->t('Import root certificate')); ?></label>
|
|
|
|
<input type="file" id="rootcert_import" name="rootcert_import"
|
|
|
|
class="hiddenuploadfield">
|
|
|
|
</form>
|
|
|
|
</div>
|