aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev2/ocsp-timeouts-good/hosts/winnetou/etc/openssl/ocsp/ocsp.cgi
blob: 46a716f838ed7de26c87b04f7e8fc5dfca0d1a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

cd /etc/openssl

echo "Content-type: application/ocsp-response"
echo ""

# simulate a delayed response
sleep 2

cat | /usr/bin/openssl ocsp -index index.txt -CA strongswanCert.pem \
	-rkey ocspKey.pem -rsigner ocspCert.pem \
	-nmin 5 \
	-reqin /dev/stdin -respout /dev/stdout | cat