def __eq__(self, other: object) -> bool:
    if (not isinstance(other, PKCS12Certificate)):
        return NotImplemented
    return ((self.certificate == other.certificate) and (self.friendly_name == other.friendly_name))
def __eq__(self, other: object) -> bool:
    if (not isinstance(other, PKCS12Certificate)):
        return NotImplemented
    return ((self.certificate == other.certificate) and (self.friendly_name == other.friendly_name))