blob: dd641135541fecb0b4b1d9818534a82bed6e184a [file] [log] [blame]
# Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
# launches a local HTTP server that serves certificate revocation
# list file to the token server.
# Its URL is specified as 'crl_url' in the token server config.
cd $(dirname $0)
. ./
# Default SimpleHTTPServer tries to bind to '' and it triggers firewall
# warning on OS X.
import BaseHTTPServer as bhs, SimpleHTTPServer as shs;
srv = bhs.HTTPServer(('', $CRLSERVER_PORT), shs.SimpleHTTPRequestHandler);
# Need to serve a parent of $CA_DIR, since $CA_DIR itself is recreated in
# tests (and server continues to server delete directory).
python -c "$SCRIPT"