xref: /openssl/demos/certs/ocsprun.sh (revision bcd92754)
1#!/bin/sh
2
3opensslcmd() {
4    LD_LIBRARY_PATH=../.. ../../apps/openssl $@
5}
6
7# Example of running an querying OpenSSL test OCSP responder.
8# This assumes "mkcerts.sh" or similar has been run to set up the
9# necessary file structure.
10
11OPENSSL_CONF=../../apps/openssl.cnf
12export OPENSSL_CONF
13
14opensslcmd version
15
16# Run OCSP responder.
17
18PORT=8888
19
20opensslcmd ocsp -port $PORT -index index.txt -CA intca.pem \
21	-rsigner resp.pem -rkey respkey.pem -rother intca.pem $*
22