import_cert Method
Imports a certificate.
Syntax
def import_cert(cert_bytes: bytes, password: str) -> None: ...
Remarks
Use this method to load a certificate from a byte array. Provide the password via the Password parameter. The Password parameter is optional. If it is omitted and it is later discovered that the key is password-encrypted, the on_password_needed event will be fired to request it. This method supports certificates in DER, PEM, PFX, and SPC formats.