Project

General

Profile

$sslhash » History » Version 2

Per Amundsen, 09/06/2022 09:27 PM

1 1 Per Amundsen
_Added in 4.3_
2
3
*$sslhash(md5|sha1|sha256|sha512|ecdsa, p|s)*
4
5
Returns the "SSL/TLS":https://en.wikipedia.org/wiki/Public_key_certificate client or server certificate hash.
6
7
*Parameters*
8
9 2 Per Amundsen
md5|sha1|sha256|sha512|ecdsa - The hash method to return. *(ecdsa is TODO)*
10 1 Per Amundsen
p|s - p = the private/client certificate, s = the remote server certificate.
11
12
*Properties*
13
14
.babble - Returns "bubble babble":http://bohwaz.net/archives/web/Bubble_Babble.html encoded string.
15
.colons - Returns hash digest with pairs of hex digits separated by colons.
16
17
*Example*
18
19
<pre>
20
//echo -ag The shas256 hash for the current client certificate is $sslhash(sha256, p)
21
22
//echo -ag The shas256 hash for the current remote certificate is $sslhash(sha256, s)
23
</pre>