summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_certmanager.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-02 15:07:47 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-02 15:08:14 -0500
commit991af0a81cc08f713dd3a1fc65806c02f71453dc (patch)
treec02cce093281f8cec68f55ddceeeda75b390b59c /src/usr/local/www/system_certmanager.php
parent63646f4de325e5542e56778bace4b66ba422a57f (diff)
downloadpfsense-991af0a81cc08f713dd3a1fc65806c02f71453dc.zip
pfsense-991af0a81cc08f713dd3a1fc65806c02f71453dc.tar.gz
Don't display start/end times or export icons for CSRs
Diffstat (limited to 'src/usr/local/www/system_certmanager.php')
-rw-r--r--src/usr/local/www/system_certmanager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php
index cf4cf2e..5ea1823 100644
--- a/src/usr/local/www/system_certmanager.php
+++ b/src/usr/local/www/system_certmanager.php
@@ -1026,10 +1026,12 @@ foreach($a_cert as $i => $cert):
<td><?=$caname?></td>
<td>
<?=$subj?>
+ <?php if (! $cert['csr']): ?>
<br />
<small>
<?=gettext("Valid From")?>: <b><?=$startdate ?></b><br /><?=gettext("Valid Until")?>: <b><?=$enddate ?></b>
</small>
+ <?php endif?>
</td>
<td>
<?php if (is_cert_revoked($cert)): ?>
@@ -1055,9 +1057,11 @@ foreach($a_cert as $i => $cert):
<?php endif?>
</td>
<td>
+ <?php if (! $cert['csr']): ?>
<a href="system_certmanager.php?act=exp&amp;id=<?=$i?>" class="fa fa-sign-in" title="<?=gettext("Export")?>"></a>
<a href="system_certmanager.php?act=key&amp;id=<?=$i?>" class="fa fa-key" title="<?=gettext("Export key")?>"></a>
<a href="system_certmanager.php?act=p12&amp;id=<?=$i?>" class="fa fa-key" title="<?=gettext("Export P12")?>"> P12</a>
+ <?php endif?>
<?php if (!cert_in_use($cert['refid'])): ?>
<a href="system_certmanager.php?act=del&amp;id=<?=$i?>" class="fa fa-trash" title="<?=gettext("Delete")?>"></a>
<?php endif?>
OpenPOWER on IntegriCloud