TLSCredentialsManager.verifyCertificateChain

Check the certificate chain is valid up to a trusted root, and optionally (if hostname != "") that the hostname given is consistent with the leaf certificate.

This function should throw new an exception derived from Exception with an informative what() result if the certificate chain cannot be verified.

class TLSCredentialsManager
public abstract
void
verifyCertificateChain
(
in string type
,,
const ref Vector!X509Certificate cert_chain
)

Parameters

type string

specifies the type of operation occuring

purported_hostname string

specifies the purported hostname

cert_chain Vector!X509Certificate

specifies a certificate chain leading to a trusted root CA certificate.

Meta