source: mod_gnutls/test/ocsp_server.conf.in

mod_gnutls/0.11.0
Last change on this file was d2f2f62, checked in by Krista Karppinen <krista.celestia@…>, 4 months ago

Rewrite OCSP responder in Python

Rewrite the OCSP responder CGI script in Python 3 for consistency
and maintainability

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[94430e6]1Define  OCSP_PORT       ${OCSP_PORT}
2Define  TEST_PORT       ${OCSP_PORT}
3
4Include ${srcdir}/base_apache.conf
5
[c4d6e77]6Include         ${srcdir}/cgi_module.conf
[c0c4106]7LoadModule      env_module              ${AP_LIBEXECDIR}/mod_env.so
[1eaadcd]8LoadModule      alias_module            ${AP_LIBEXECDIR}/mod_alias.so
[94430e6]9
10# separate log and PID file
11CustomLog       logs/${TEST_NAME}.ocsp.access.log combined
12ErrorLog        logs/${TEST_NAME}.ocsp.error.log
13PidFile         ocsp@PID_AFFIX@.pid
14
[c0c4106]15<IfDefine !OCSP_INDEX>
16        # Default index file, define OCSP_INDEX in the test specific
17        # config to override
18        Define  OCSP_INDEX      ${PWD}/authority/ocsp_index.txt
19</IfDefine>
20
21<VirtualHost _default_:${OCSP_PORT}>
[d2f2f62]22        ScriptAlias /ocsp "${srcdir}/data/ocsp.py"
[7cfc02b]23        # General rules for all OCSP handling
[c0c4106]24        <Location /ocsp/>
25                # Some clients seem to have trouble with chunked
26                # encoding, so force HTTP/1.0 for now.
27                SetEnv  downgrade-1.0
[7cfc02b]28                <If "-n osenv('OPENSSL')">
29                        # Pass OPENSSL variable to CGI script if set
30                        SetEnv  OPENSSL         ${OPENSSL}
31                </If>
32        </Location>
33        <Location /ocsp/authority/>
[d2f2f62]34                # certificates and key for ocsp.py
[c0c4106]35                SetEnv  CA_CERT         ${PWD}/authority/x509.pem
36                SetEnv  OCSP_INDEX      ${OCSP_INDEX}
[e8498bf]37                SetEnv  OCSP_CERT       ${PWD}/authority/ocsp-responder/x509.pem
38                SetEnv  OCSP_KEY        ${PWD}/authority/ocsp-responder/secret.key
[7cfc02b]39        </Location>
40        <Location /ocsp/authority/subca/>
[d2f2f62]41                # certificates and key for ocsp.py
[7cfc02b]42                SetEnv  CA_CERT         ${PWD}/authority/subca/x509.pem
43                SetEnv  OCSP_INDEX      ${PWD}/authority/subca/ocsp_index.txt
44                SetEnv  OCSP_CERT       ${PWD}/authority/subca/ocsp-responder/x509.pem
45                SetEnv  OCSP_KEY        ${PWD}/authority/subca/ocsp-responder/secret.key
[c0c4106]46        </Location>
47</VirtualHost>
Note: See TracBrowser for help on using the repository browser.