OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """An https server that forwards requests to another server. This allows a | 5 """An https server that forwards requests to another server. This allows a |
6 server that supports http only to be accessed over https. | 6 server that supports http only to be accessed over https. |
7 """ | 7 """ |
8 | 8 |
9 import BaseHTTPServer | 9 import BaseHTTPServer |
10 import minica | 10 import minica |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 return server | 181 return server |
182 | 182 |
183 def add_options(self): | 183 def add_options(self): |
184 """Specifies the command-line options understood by the server.""" | 184 """Specifies the command-line options understood by the server.""" |
185 testserver_base.TestServerRunner.add_options(self) | 185 testserver_base.TestServerRunner.add_options(self) |
186 self.option_parser.add_option('--https', action='store_true', | 186 self.option_parser.add_option('--https', action='store_true', |
187 help='Ignored (provided for compatibility ' | 187 help='Ignored (provided for compatibility ' |
188 'only).') | 188 'only).') |
189 self.option_parser.add_option('--ocsp', help='Ignored (provided for' | 189 self.option_parser.add_option('--ocsp', help='Ignored (provided for' |
190 'compatibility only).') | 190 'compatibility only).') |
| 191 self.option_parser.add_option('--ocsp-date', help='Ignored (provided for' |
| 192 'compatibility only).') |
| 193 self.option_parser.add_option('--ocsp-produced', help='Ignored (provided ' |
| 194 'for compatibility only).') |
191 self.option_parser.add_option('--ssl-host', help='The host name that the ' | 195 self.option_parser.add_option('--ssl-host', help='The host name that the ' |
192 'certificate should be issued to.') | 196 'certificate should be issued to.') |
193 self.option_parser.add_option('--forward-target', help='The URL prefix to ' | 197 self.option_parser.add_option('--forward-target', help='The URL prefix to ' |
194 'which requests will be forwarded.') | 198 'which requests will be forwarded.') |
195 | 199 |
196 | 200 |
197 if __name__ == '__main__': | 201 if __name__ == '__main__': |
198 sys.exit(ServerRunner().main()) | 202 sys.exit(ServerRunner().main()) |
OLD | NEW |