OpenSSLContext.useTrustedCertificateFile

Sets the list of trusted certificates for verifying peer certificates.

If this is a server context, this also entails that the given certificates are advertised to connecting clients during handshake.

On Linux, the system's root certificate authority list is usually found at "/etc/ssl/certs/ca-certificates.crt", "/etc/pki/tls/certs/ca-bundle.crt", or "/etc/ssl/ca-bundle.pem".

class OpenSSLContext
@safe @trusted
void
useTrustedCertificateFile
(
string path
)

Meta