Tls module

peer_certificate_signature_hash

procedure · 1 overloadsince 0.27.0Source

The hash the peer certificate's signature uses, by lower-case name: "md5", "sha1", "sha224", "sha256", "sha384" or "sha512". "" when there is no certificate or the algorithm names no hash (Ed25519, unknown OIDs). It reads the certificate's own DER, not the library's view of it.

peer_certificate_signature_hash :: (stream: *Tls_Stream) -> string

The hash the peer certificate's signature uses, by lower-case name: "md5", "sha1", "sha224", "sha256", "sha384" or "sha512". "" when there is no certificate or the algorithm names no hash (Ed25519, unknown OIDs). It reads the certificate's own DER, not the library's view of it.

Parameters

stream: *Tls_Stream
the stream whose peer certificate to look at.

Returns

string

See also