atoti.HttpsConfig#

class atoti.HttpsConfig#

The PKCS 12 keystore configuration to enable HTTPS on the application.

Note

This feature is not part of the community edition: it needs to be unlocked.

Note

PEM or DER certificates can be converted to PKCS 12 with OpenSSL.

Example

>>> from pathlib import Path
>>> https_config = tt.HttpsConfig(certificate=Path("cert.p12"), password="secret")
certificate: Path#

The path to the certificate.

certificate_authority: Path | None = None#

Path to the custom certificate authority to use to verify the HTTPS connection.

Required when certificate is not signed by some trusted public certificate authority.

domain: str = 'localhost'#

The domain certified by the certificate.

password: str#

The password to read the certificate.