2011-05-09 18:16:53 +02:00
|
|
|
<h3><?php echo T_('SSL client certificates'); ?></h3>
|
|
|
|
<?php if (count($sslClientCerts)) { ?>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-05-10 15:23:58 +02:00
|
|
|
<th>Options</th>
|
2011-05-09 18:16:53 +02:00
|
|
|
<th><?php echo T_('Serial'); ?></th>
|
|
|
|
<th><?php echo T_('Name'); ?></th>
|
|
|
|
<th><?php echo T_('Email'); ?></th>
|
|
|
|
<th><?php echo T_('Issuer'); ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($sslClientCerts as $cert) { ?>
|
2011-05-10 15:23:58 +02:00
|
|
|
<tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>>
|
|
|
|
<td><a href="#FIXME">delete</a></td>
|
2011-05-09 18:16:53 +02:00
|
|
|
<td><?php echo htmlspecialchars($cert->sslSerial); ?></td>
|
|
|
|
<td><?php echo htmlspecialchars($cert->sslName); ?></td>
|
|
|
|
<td><?php echo htmlspecialchars($cert->sslEmail); ?></td>
|
|
|
|
<td><?php echo htmlspecialchars($cert->sslClientIssuerDn); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php } else { ?>
|
|
|
|
<p><?php echo T_('No certificates registered'); ?></p>
|
|
|
|
<?php } ?>
|
2011-05-10 15:23:58 +02:00
|
|
|
|
|
|
|
<?php if ($currentCert) { ?>
|
|
|
|
<?php if ($currentCert->isRegistered($sslClientCerts)) { ?>
|
|
|
|
<p><?php echo T_('Your current certificate is already registered with your account.'); ?></p>
|
|
|
|
<?php } else { ?>
|
|
|
|
<p>
|
|
|
|
<a href="#FIXME">
|
|
|
|
<?php echo T_('Register current certificate to automatically login.'); ?>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<p><?php echo T_('Your browser does not provide a certificate.'); ?></p>
|
|
|
|
<?php } ?>
|