Project

General

Profile

$sslhash » History » Version 3

Per Amundsen, 09/06/2022 11:20 PM

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