mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
There is little reason $@ should be used unquoted; also, "$@" should be used instead of $* in order to pass the script arguments to a function. Fixes:bcd92754d5"demos: fix cert scripts" Fixes:79b184fb4b"Extend certificate creation examples to include CRL generation and sample" Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/28405)
22 lines
468 B
Bash
22 lines
468 B
Bash
#!/bin/sh
|
|
|
|
opensslcmd() {
|
|
LD_LIBRARY_PATH=../.. ../../apps/openssl "$@"
|
|
}
|
|
|
|
# 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
|
|
|
|
opensslcmd version
|
|
|
|
# Run OCSP responder.
|
|
|
|
PORT=8888
|
|
|
|
opensslcmd ocsp -port $PORT -index index.txt -CA intca.pem \
|
|
-rsigner resp.pem -rkey respkey.pem -rother intca.pem "$@"
|