2023-12-24 06:03:21 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
opensslcmd() {
|
|
|
|
LD_LIBRARY_PATH=../.. ../../apps/openssl $@
|
|
|
|
}
|
|
|
|
|
2012-09-10 04:43:49 +08:00
|
|
|
# Example of running an querying OpenSSL test OCSP responder.
|
|
|
|
# This assumes "mkcerts.sh" or similar has been run to set up the
|
|
|
|
# necessary file structure.
|
|
|
|
|
|
|
|
OPENSSL_CONF=../../apps/openssl.cnf
|
|
|
|
export OPENSSL_CONF
|
|
|
|
|
2023-12-24 06:03:21 +08:00
|
|
|
opensslcmd version
|
|
|
|
|
2012-09-10 04:43:49 +08:00
|
|
|
# Run OCSP responder.
|
|
|
|
|
|
|
|
PORT=8888
|
|
|
|
|
2023-12-24 06:03:21 +08:00
|
|
|
opensslcmd ocsp -port $PORT -index index.txt -CA intca.pem \
|
2012-09-10 04:43:49 +08:00
|
|
|
-rsigner resp.pem -rkey respkey.pem -rother intca.pem $*
|