atoti_query.ClientCertificate#

class atoti_query.ClientCertificate#

A client certificate to open a atoti_query.QuerySession against a session configured with atoti.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: str | Path#

Path to the .pem file containing the client certificate.

keyfile: str | Path | None = None#

Path to the certificate .key file.

password: str | None = None#

The certificate password.