Tls module

peer_certificate_der

procedure · 1 overloadsince 0.27.0Source

The DER of the certificate the peer proved itself with (the first of its chain): the server's on a client stream, the client's on a server stream that asked for one. The bytes belong to the stream and stay valid until close. Empty before the handshake or when the peer sent none.

peer_certificate_der :: (stream: *Tls_Stream) -> [] u8

The DER of the certificate the peer proved itself with (the first of its chain): the server's on a client stream, the client's on a server stream that asked for one. The bytes belong to the stream and stay valid until close. Empty before the handshake or when the peer sent none.

Parameters

stream: *Tls_Stream
the stream to ask.

Returns

[] u8

See also