'A helper method to dump and load a PKCS12 object.'

def _dump_and_load(self, dump_passphrase, load_passphrase):

    p12 = self.gen_pkcs12(client_cert_pem, client_key_pem)
    dumped_p12 = p12.export(passphrase=dump_passphrase, iter=2, maciter=3)
    return load_pkcs12(dumped_p12, passphrase=load_passphrase)
