def __init__(self): self.certdb_dir = os.path.expanduser(config.NSS_DB_DIR) nss.nss_init(self.certdb_dir) nss.enable_ocsp_checking() self.certdb = nss.get_default_certdb()
def test_enable_ocsp_checking(self): nss.enable_ocsp_checking() nss.disable_ocsp_checking() nss.enable_ocsp_checking(self.certdb) nss.disable_ocsp_checking(self.certdb)