def _store_certs(self): # pylint: disable=protected-access from letsencrypt.revoker import Revoker Revoker.store_cert_key(self.paths[0], self.key_path, self.mock_config) Revoker.store_cert_key(self.paths[1], self.key_path, self.mock_config) # Set metadata for i in xrange(2): self.certs[i].add_meta( i, self.paths[i], self.key_path, Revoker._get_backup(self.backup_dir, i, self.paths[i]), Revoker._get_backup(self.backup_dir, i, self.key_path))
def _call(self, cert_path, key_path): from letsencrypt.revoker import Revoker Revoker.store_cert_key(cert_path, key_path, self.mock_config)