Changeset 90d750d in mod_gnutls
- Timestamp:
- Oct 10, 2020, 8:16:07 AM (6 months ago)
- Branches:
- asyncio
- Children:
- 3e61371
- Parents:
- 6cec675
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/data/ocsp.py
r6cec675 r90d750d 50 50 sys.stdout.buffer.write(data) 51 51 52 52 53 def stdout_line(line): 53 54 stdout(line.encode('utf-8')) 54 55 stdout(b'\n') 55 56 57 56 58 def stdout_status(status, content_type='text/plain'): 57 59 stdout_line(f'Status: {status.value} {status.phrase}') 58 60 stdout_line(f'Content-Type: {content_type}\n') 61 59 62 60 63 def stdout_response(status, response): … … 69 72 stdout_status(HTTPStatus.METHOD_NOT_ALLOWED) 70 73 stdout_line('OCSP GET request not implemented.') 74 71 75 72 76 def handle_post(): … … 83 87 file=sys.stderr, flush=True) 84 88 openssl = os.getenv('OPENSSL') or shutil.which('openssl') 85 openssl_run = subprocess.run([openssl, 'ocsp', 86 '-index', os.getenv('OCSP_INDEX'), 87 '-CA', os.getenv('CA_CERT'), 88 '-rsigner', os.getenv('OCSP_CERT'), 89 '-rkey', os.getenv('OCSP_KEY'), 90 '-nmin', os.getenv('OCSP_VALID_MIN', '5'), 91 '-reqin', '-', '-respout', '-'], 89 openssl_run = subprocess.run( 90 [openssl, 'ocsp', 91 '-index', os.getenv('OCSP_INDEX'), 92 '-CA', os.getenv('CA_CERT'), 93 '-rsigner', os.getenv('OCSP_CERT'), 94 '-rkey', os.getenv('OCSP_KEY'), 95 '-nmin', os.getenv('OCSP_VALID_MIN', '5'), 96 '-reqin', '-', '-respout', '-'], 92 97 input=req, capture_output=True) 93 98
Note: See TracChangeset
for help on using the changeset viewer.