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.
- stream: the stream to ask.
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