1
0
Fork 0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-11-14 02:32:43 +00:00
promcertcheck/display.html

67 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2015-09-04 13:36:49 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Certificate validation results</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row" style="height:20px"></div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
Certificate validation results
</div>
<div class="panel-body">
<table class="table table-striped">
<tr>
<th>Host</th><th>Issuer</th><th>Valid until</th><th>Result</th>
</tr>
{% for host, res in results sorted %}
{% if res.Status == certificateOK %}
<tr>
{% elif res.Status == certificateExpiresSoon %}
<tr class="warning">
{% else %}
<tr class="danger">
{% endif %}
<td><abbr title="{{ res.Certificate.DNSNames | join:', ' }}">{{ host }}</abbr></td>
2015-09-04 13:36:49 +00:00
<td>{{ res.Certificate.Issuer.CommonName }}</td>
<td>{{ res.Certificate.NotAfter | time:"2006-01-02 15:04:05 MST" }}</td>
2015-09-04 13:36:49 +00:00
<td>{{ res.Status.String() }}</td>
</tr>
{% endfor %}
</table>
</div>
<div class="panel-footer">
<a href="https://github.com/Luzifer/promcertcheck">PromCertcheck {{ version }}</a>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>