diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-06 01:36:23 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-06 01:36:23 +0100 |
commit | 1048585a08ac824057eea35c57fe359b9e6a48fe (patch) | |
tree | b9712a32ac64a34443a14d0ad1b95ac833f8fb4d /src/usr/local | |
parent | dfbc9267d3838088f551de0a53021486b0e7c3df (diff) | |
download | pfsense-1048585a08ac824057eea35c57fe359b9e6a48fe.zip pfsense-1048585a08ac824057eea35c57fe359b9e6a48fe.tar.gz |
certificatemanager, don't show information from previous certificate if no cert or csr is present in the cert
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/system_certmanager.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php index 3bcfb4c..7459650 100644 --- a/src/usr/local/www/system_certmanager.php +++ b/src/usr/local/www/system_certmanager.php @@ -983,6 +983,13 @@ foreach ($a_cert as $i => $cert): } $subj = htmlspecialchars($subj); + } else { + $subj = ""; + $issuer = ""; + $purpose = ""; + $startdate = ""; + $enddate = ""; + $caname = "<em>" . gettext("private key only") . "</em>"; } if ($cert['csr']) { @@ -1008,7 +1015,7 @@ foreach ($a_cert as $i => $cert): <td><?=$caname?></td> <td> <?=$subj?> - <?php if (!$cert['csr']): ?> + <?php if (!empty($startdate) || !empty($enddate)): ?> <br /> <small> <?=gettext("Valid From")?>: <b><?=$startdate ?></b><br /><?=gettext("Valid Until")?>: <b><?=$enddate ?></b> |