summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_certmanager.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-05-27 14:37:40 +0200
committerErmal LUÇI <eri@pfsense.org>2015-05-27 14:37:40 +0200
commite3230c0ac4dd7ed070b033d068e5a589cd562a60 (patch)
tree7804a647217d2765a1cb4382b9dace090b01c3c6 /usr/local/www/system_certmanager.php
parent790bab086c47a662570deee53ffb2f0b360e7c71 (diff)
parentae588a5c84a7f60a1cdf0d4b70e364acc718eb19 (diff)
downloadpfsense-e3230c0ac4dd7ed070b033d068e5a589cd562a60.zip
pfsense-e3230c0ac4dd7ed070b033d068e5a589cd562a60.tar.gz
Merge pull request #1081 from PiBa-NL/cert_usage
Diffstat (limited to 'usr/local/www/system_certmanager.php')
-rw-r--r--usr/local/www/system_certmanager.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php
index e6c7551..965f02f 100644
--- a/usr/local/www/system_certmanager.php
+++ b/usr/local/www/system_certmanager.php
@@ -1087,6 +1087,10 @@ function internalca_change() {
<td width="10%" class="list"></td>
</tr>
<?php
+ $pluginparams = array();
+ $pluginparams['type'] = 'certificates';
+ $pluginparams['event'] = 'used_certificates';
+ $certificates_used_by_packages = pkg_call_plugins('plugin_certificates', $pluginparams);
$i = 0;
foreach($a_cert as $cert):
$name = htmlspecialchars($cert['descr']);
@@ -1177,6 +1181,23 @@ function internalca_change() {
<?php if (is_captiveportal_cert($cert['refid'])): ?>
Captive Portal<br />
<?php endif; ?>
+ <?
+ $refid = $cert['refid'];
+ if (is_array($certificates_used_by_packages))
+ foreach($certificates_used_by_packages as $name => $package){
+ if(isset($package['certificatelist'][$refid])){
+ $hint = "" ;
+ if (is_array($package['certificatelist'][$refid]))
+ foreach($package['certificatelist'][$refid] as $cert_used){
+ $hint = $hint . $cert_used['usedby']."\n";
+ }
+ $count = count($package['certificatelist'][$refid]);
+ echo "<div title='".htmlspecialchars($hint)."'>";
+ echo htmlspecialchars($package['pkgname'])." ($count)<br />";
+ echo "</div>";
+ }
+ }
+ ?>
</td>
<td valign="middle" class="list nowrap">
<a href="system_certmanager.php?act=exp&amp;id=<?=$i;?>">
OpenPOWER on IntegriCloud