atoti_query.client_certificate module#
- class atoti_query.ClientCertificate#
A client certificate to open a
atoti_query.QuerySession
against a session configured withatoti.ClientCertificateConfig
.Example
>>> client_certificate = tt.ClientCertificate( ... certificate=CERTIFICATES_DIRECTORY / "client.pem", ... keyfile=CERTIFICATES_DIRECTORY / "client.key", ... ) >>> query_session = tt.QuerySession( ... f"https://localhost:{session.port}", ... certificate_authority=CERTIFICATES_DIRECTORY / "root-CA.crt", ... client_certificate=client_certificate, ... )
- certificate: Union[str, pathlib.Path]#
Path to the
.pem
file containing the client certificate.
- keyfile: Optional[Union[str, pathlib.Path]] = None#
Path to the certificate
.key
file.