def setUp(self): nss.nss_init(db_name) nss.set_password_callback(password_callback) nss.pkcs12_enable_all_ciphers() self.cert_der = get_cert_der_from_db(cert_nickname) if self.cert_der is None: raise ValueError('cert with nickname "%s" not in database "%s"' % (cert_nickname, db_name))
def setUp(self): nss.nss_init_read_write(certdir) nss.set_password_callback(password_callback) nss.pkcs12_set_nickname_collision_callback(nickname_collision_callback) nss.pkcs12_enable_all_ciphers()
def setUp(self): nss.nss_init(certdir) nss.set_password_callback(password_callback) nss.pkcs12_enable_all_ciphers()