def set_certificate(self, cert):
        if not isinstance(cert, X509):
            raise TypeError("cert must be an X509 instance")
        self._cert = cert
Replace the certificate portion of the PKCS12 structure
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/crypto.py/PKCS12.set_certificate