rustls_certified_key_get_certificate

Return the i-th rustls_certificate in the rustls_certified_key. 0 gives the end-entity certificate. 1 and higher give certificates from the chain. Indexes higher than the last available certificate return NULL.

The returned certificate is valid until the rustls_certified_key is freed.

extern (C)
rustls_certified_key_get_certificate

Meta