diff options
author | Remy <relst@relst.nl> | 2015-09-22 15:43:11 +0200 |
---|---|---|
committer | Remy <relst@relst.nl> | 2015-09-22 15:43:11 +0200 |
commit | 9f335dabf0c022122d2ddf0c24206b40d5154771 (patch) | |
tree | ff1cbb2db7e7f06422beefd2ff12a1e98ba6c377 /functions/parse_certificate.php | |
parent | 0c4df45421a41e15251b010231c1b22415103ce4 (diff) | |
download | ssl-decoder-9f335dabf0c022122d2ddf0c24206b40d5154771.zip ssl-decoder-9f335dabf0c022122d2ddf0c24206b40d5154771.tar.gz ssl-decoder-9f335dabf0c022122d2ddf0c24206b40d5154771.tar.bz2 |
Add certificate transparency log submission
Diffstat (limited to 'functions/parse_certificate.php')
-rw-r--r-- | functions/parse_certificate.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/functions/parse_certificate.php b/functions/parse_certificate.php index 4973cea..791aa38 100644 --- a/functions/parse_certificate.php +++ b/functions/parse_certificate.php @@ -252,8 +252,9 @@ function cert_parse($data) { echo "<td>"; foreach ( explode("DNS:", $data['cert_data']['extensions']['subjectAltName']) as $altName ) { if ( !empty(str_replace(',', " ", "$altName"))) { + echo "<span style='font-family:monospace;'>"; echo htmlspecialchars(str_replace(',', " ", "$altName")); - echo "<br>"; + echo "</span><br>"; } } echo "</td>"; @@ -275,9 +276,9 @@ function cert_parse($data) { echo "</tr>"; echo "<tr>"; echo "<td>Full Subject</td>"; - echo "<td>"; + echo "<td><span style='font-family:monospace;'>"; echo htmlspecialchars($data['cert_data']['name']); - echo "</td>"; + echo "</span></td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2'><strong>Issuer</strong></td>"; @@ -503,7 +504,7 @@ function cert_parse($data) { echo "<tr>"; echo "<td>Serial</td>"; echo "<td>"; - echo htmlspecialchars($data['serialNumber']); + echo "<span style='font-family:monospace;'>" . htmlspecialchars($data['serialNumber']) . "</span>"; echo "</td>"; echo "</tr>"; } @@ -633,7 +634,7 @@ function cert_parse($data) { echo "<tr>"; echo "<td><a href='https://raymii.org/s/articles/HTTP_Public_Key_Pinning_Extension_HPKP.html'>SPKI Hash</a></td>"; echo "<td>"; - print(htmlspecialchars($data['key']['spki_hash'])); + print("<span style='font-family:monospace;'>" . htmlspecialchars($data['key']['spki_hash']) . "</span>"); echo "</td>"; echo "</tr>"; } |