def __init__(self, cert: x509.Certificate, friendly_name: typing.Optional[bytes]):
    if (not isinstance(cert, x509.Certificate)):
        raise TypeError('Expecting x509.Certificate object')
    if ((friendly_name is not None) and (not isinstance(friendly_name, bytes))):
        raise TypeError('friendly_name must be bytes or None')
    self._cert = cert
    self._friendly_name = friendly_name
def __init__(self, cert: x509.Certificate, friendly_name: typing.Optional[bytes]):
    if (not isinstance(cert, x509.Certificate)):
        raise TypeError('Expecting x509.Certificate object')
    if ((friendly_name is not None) and (not isinstance(friendly_name, bytes))):
        raise TypeError('friendly_name must be bytes or None')
    self._cert = cert
    self._friendly_name = friendly_name