Skip to main content
atoti.HttpsConfig(
    *,
    certificate: Path,
    password: str,
    domain: str = 'localhost',
    certificate_authority: Path | None = None,
)
The PKCS 12 keystore config to enable HTTPS on the application.
PEM or DER certificates can be converted to PKCS 12 with OpenSSL.

Attributes

certificate

The path to the certificate.

password

The password to read the certificate.

domain

The domain certified by the certificate.

certificate_authority

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.