twisted.internet.ssl.trustRootFromCertificates(certificates)
function documentationtwisted.internet.ssl
View Source
Builds an object that trusts multiple root Certificate
s.
When passed to optionsForClientTLS
,
connections using those options will reject any server certificate not
signed by at least one of the certificates in the `certificates` list.
Parameters | certificates | All certificates which will be trusted. (type: iterable of CertBase ) |
Returns | an object suitable for use as the trustRoot= keyword argument to optionsForClientTLS (type: IOpenSSLTrustRoot ) | |
Present Since | 16.0 |