Project

General

Profile

$sslhash » History » Revision 2

Revision 1 (Per Amundsen, 09/06/2022 09:26 PM) → Revision 2/4 (Per Amundsen, 09/06/2022 09:27 PM)

_Added in 4.3_ 

 *$sslhash(md5|sha1|sha256|sha512|ecdsa, p|s)* 

 Returns the "SSL/TLS":https://en.wikipedia.org/wiki/Public_key_certificate client or server certificate hash. 

 *Parameters* 

 md5|sha1|sha256|sha512|ecdsa - The hash method to return. *(ecdsa is TODO)* 
 p|s - p = the private/client certificate, s = the remote server certificate. 

 *Properties* 

 .babble - Returns "bubble babble":http://bohwaz.net/archives/web/Bubble_Babble.html encoded string. 
 .colons - Returns hash digest with pairs of hex digits separated by colons. 

 *Example* 

 <pre> 
 //echo -ag The shas256 hash for the current client certificate is $sslhash(sha256, p) 

 //echo -ag The shas256 hash for the current remote certificate is $sslhash(sha256, s) 
 </pre>