source: mod_gnutls/test/ocsp_server.conf @ 0a12ff8

debian/masterdebian/stretch-backportsupstream
Last change on this file since 0a12ff8 was c4d6e77, checked in by Thomas Klute <thomas2.klute@…>, 4 years ago

Test suite: New test case for simple HTTPS access with OCSP status check

  • Property mode set to 100644
File size: 966 bytes
Line 
1Include         ${srcdir}/cgi_module.conf
2LoadModule      env_module              ${AP_LIBEXECDIR}/mod_env.so
3LoadModule      rewrite_module          ${AP_LIBEXECDIR}/mod_rewrite.so
4<IfDefine !OCSP_INDEX>
5        # Default index file, define OCSP_INDEX in the test specific
6        # config to override
7        Define  OCSP_INDEX      ${PWD}/authority/ocsp_index.txt
8</IfDefine>
9
10<VirtualHost _default_:${OCSP_PORT}>
11        RewriteEngine   On
12        RewriteRule     ^/ocsp(.*)      /ocsp.cgi$1     [L]
13        <Location /ocsp/>
14                # Some clients seem to have trouble with chunked
15                # encoding, so force HTTP/1.0 for now.
16                SetEnv  downgrade-1.0
17                # certificates and key for ocsp.cgi
18                SetEnv  CA_CERT         ${PWD}/authority/x509.pem
19                SetEnv  OCSP_INDEX      ${OCSP_INDEX}
20                SetEnv  OCSP_CERT       ${PWD}/ocsp-responder/x509.pem
21                SetEnv  OCSP_KEY        ${PWD}/ocsp-responder/secret.key
22                <If "-n osenv('OPENSSL')">
23                        # Pass OPENSSL variable to CGI script if set
24                        SetEnv  OPENSSL         ${OPENSSL}
25                </If>
26        </Location>
27        <Directory ${srcdir}/data>
28                Options +ExecCGI
29        </Directory>
30</VirtualHost>
Note: See TracBrowser for help on using the repository browser.