Introducing new PKI management

This commit is contained in:
nemunaire 2018-01-21 14:18:26 +01:00
commit 0259ae8f94
19 changed files with 857 additions and 53 deletions

View file

@ -69,15 +69,30 @@
<div class="card">
<div class="card-header bg-primary text-light">
<span class="glyphicon glyphicon-certificate" aria-hidden="true"></span>
Certificate
<span class="badge badge-success" ng-if="hasCertificate">Generated</span>
<span class="badge badge-danger" ng-if="!hasCertificate">Not found</span>
Certificates
<span class="badge badge-success" ng-if="certificates.length">Generated</span>
<span class="badge badge-danger" ng-if="!certificates.length">Not found</span>
</div>
<div class="card-body bg-light text-dark">
<button ng-click="generateCertificate()" class="btn btn-success" ng-if="!hasCertificate">
<span class="glyphicon glyphicon-certificate" aria-hidden="true"></span> Generate certificate</button>
<button ng-click="revokeCertificate()" class="btn btn-danger" ng-if="hasCertificate">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Revoke certificate</button>
<dl class="dl-horizontal" ng-repeat="cert in certificates">
<dt>
Numéro de série
<button type="button" class="btn btn-sm btn-primary float-right" ng-click="dissociateCertificate(cert)">Dissocier</button>
</dt>
<dd>
{{ cert.id }}
<span class="badge badge-danger" ng-if="cert.revoked">Révoqué</span>
</dd>
<dt>
Date de création
<a class="btn btn-sm btn-success float-right" href="../api/certs/{{ cert.id }}">Télécharger</a>
</dt>
<dd>{{ cert.creation }}</dd>
<dt>Mot de passe</dt>
<dd>{{ cert.password }}</dd>
<dt ng-if="cert.revoked">Date de révocation</dt>
<dd ng-if="cert.revoked">{{ cert.revoked }}</dd>
</dl>
</div>
</div>