def set_privatekey(self, pkey):
        if not isinstance(pkey, PKey):
            raise TypeError("pkey must be a PKey instance")
        self._pkey = pkey
Replace or set the certificate portion of the PKCS12 structure
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/crypto.py/PKCS12.set_privatekey