summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_client.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-10-21 16:00:15 -0400
committerjim-p <jimp@pfsense.org>2010-10-21 16:00:15 -0400
commit6a0b3ea4bfd00587ead0e1e7ccbbc12fba3781cb (patch)
treeb55e54d7495625746cb60363dee0a67393edce19 /usr/local/www/vpn_openvpn_client.php
parent150bbe09fbc0d32dd3777ea44dcafb3d5eaa3bc4 (diff)
downloadpfsense-6a0b3ea4bfd00587ead0e1e7ccbbc12fba3781cb.zip
pfsense-6a0b3ea4bfd00587ead0e1e7ccbbc12fba3781cb.tar.gz
Indicate in various places if a certificate is revoked.
Diffstat (limited to 'usr/local/www/vpn_openvpn_client.php')
-rw-r--r--usr/local/www/vpn_openvpn_client.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php
index f0db930..3678138 100644
--- a/usr/local/www/vpn_openvpn_client.php
+++ b/usr/local/www/vpn_openvpn_client.php
@@ -627,10 +627,22 @@ function autotls_change() {
<?php
foreach ($config['cert'] as $cert):
$selected = "";
+ $caname = "";
+ $inuse = "";
+ $revoked = "";
+ if (in_array($cert['refid'], $config['system']['user'][$userid]['cert']))
+ continue;
+ $ca = lookup_ca($cert['caref']);
+ if ($ca)
+ $caname = " (CA: {$ca['descr']})";
if ($pconfig['certref'] == $cert['refid'])
$selected = "selected";
+ if (cert_in_use($cert['refid']))
+ $inuse = " *In Use";
+ if (is_cert_revoked($cert))
+ $revoked = " *Revoked";
?>
- <option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option>
+ <option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'] . $caname . $inuse . $revoked;?></option>
<?php endforeach; ?>
</select>
</td>
OpenPOWER on IntegriCloud