atoti_query.ClientCertificate#
- 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, ... )