summaryrefslogtreecommitdiffstats
path: root/functions/parse_certificate.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions/parse_certificate.php')
-rw-r--r--functions/parse_certificate.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/functions/parse_certificate.php b/functions/parse_certificate.php
index ddd4dfa..f13869d 100644
--- a/functions/parse_certificate.php
+++ b/functions/parse_certificate.php
@@ -627,9 +627,10 @@
</div>
<div id="pub-pem-collapse<?php echo bcdechex($cert_data['serialNumber']); ?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="pub-pem-heading<?php echo bcdechex($cert_data['serialNumber']); ?>">
<div class="panel-body">
- <?php
- echo "<pre>";
- echo htmlspecialchars($key_details['key']);
+
+ <?php
+ echo "<pre>";
+ echo htmlspecialchars($key_details['key']);
?>
</pre>
</div>
@@ -638,6 +639,15 @@
</div>
</td>
</tr>
+ <tr>
+ <td><a href="https://raymii.org/s/articles/HTTP_Public_Key_Pinning_Extension_HPKP.html">SPKI Hash</a></td>
+ <td>
+ <?php
+ $spki_hash = spki_hash($export_pem);
+ print(htmlspecialchars($spki_hash));
+ ?>
+ </td>
+ </tr>
<?php
}
?>