symphony.bdk.core.config.model.bdk_certificate_config.BdkCertificateConfig#
- class symphony.bdk.core.config.model.bdk_certificate_config.BdkCertificateConfig(path: Optional[str] = None)#
Bases:
object
Class containing a Certificate configuration for certificate authentication. For the format of the certificate file to pass, see ssl.SSLContext.load_cert_chain. For now we only fill the
certfile
param, so thepath
field should contain the certificate and the decrypted private key in PEM format.- __init__(path: Optional[str] = None)#
- Parameters
path – the path to the client certificate file in PEM format
Methods
__init__
([path])- param path
the path to the client certificate file in PEM format
is_valid
()Check if the certificate configuration is valid.
Attributes
Path to the client certificate file in PEM format.
- is_valid() bool #
Check if the certificate configuration is valid.
- Returns
true if the path to the client certificate is not empty
- property path: str#
Path to the client certificate file in PEM format.
- Returns
the path to the client certificate file