Project

General

Profile

« Previous | Next » 

Revision 93f1121f

Added by Jim Pingle over 5 years ago

Add certificate lifetime to infoblock. Issue #7332

  • Adds the total lifetime and lifetime remaining before expiration to
    the info block
  • Adds a visual indication to the infoblock and end date when the
    certificate will be expiring soon, or if it has already expired.

View differences:

src/usr/local/www/system_certmanager.php
1228 1228
		$subj = cert_get_subject($cert['crt']);
1229 1229
		$issuer = cert_get_issuer($cert['crt']);
1230 1230
		$purpose = cert_get_purpose($cert['crt']);
1231
		list($startdate, $enddate) = cert_get_dates($cert['crt']);
1232 1231

  
1233 1232
		if ($subj == $issuer) {
1234 1233
			$caname = '<i>'. gettext("self-signed") .'</i>';
......
1271 1270
					<td>
1272 1271
						<?=$subj?>
1273 1272
						<?= cert_print_infoblock($cert); ?>
1274
						<?php if (!empty($startdate) || !empty($enddate)): ?>
1275
						<br />
1276
						<small>
1277
							<?=gettext("Valid From")?>: <b><?=$startdate ?></b><br /><?=gettext("Valid Until")?>: <b><?=$enddate ?></b>
1278
						</small>
1279
						<?php endif?>
1273
						<?php cert_print_dates($cert);?>
1280 1274
					</td>
1281 1275
					<td>
1282 1276
						<?php if (is_cert_revoked($cert)): ?>

Also available in: Unified diff