Skip to content

MTLSAuth

Part of Configuration & authentication in the Python API reference.

Related guidance: getting-started/configuration, getting-started/authentication, security/credentials.

Runnable examples: preflight.py.

from picogrid_ecn_client import MTLSAuth

Configure MQTT authentication with a client certificate and private key.

MTLSAuth(
*,
kind: Literal['mtls'] = 'mtls',
client_certificate: CertificateMaterial,
client_key: PrivateKeyMaterial,
)

Source · auth.py

NameTypeRequiredDefaultConstraintsDescription
kindLiteral[‘mtls’]no‘mtls’Authentication discriminator; always ‘mtls’.
client_certificateCertificateMaterialyesClient certificate supplied by path or secret in-memory PEM text.
client_keyPrivateKeyMaterialyesClient private key and optional password material.

Version 0.2.0 · branch main