mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
bcd92754d5
set LD_LIBRARY_PATH so the correct libs can be found. Testing: cd demos/certs && sh mkcerts.sh cd demos/certs/apps && sh -x mkacerts.sh Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Paul Yang <kaishen.yy@antfin.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23142)
29 lines
876 B
Bash
29 lines
876 B
Bash
#!/bin/sh
|
|
|
|
# Example querying OpenSSL test responder. Assumes ocsprun.sh has been
|
|
# called.
|
|
|
|
opensslcmd() {
|
|
LD_LIBRARY_PATH=../.. ../../apps/openssl $@
|
|
}
|
|
|
|
OPENSSL_CONF=../../apps/openssl.cnf
|
|
export OPENSSL_CONF
|
|
|
|
opensslcmd version
|
|
|
|
# Send responder queries for each certificate.
|
|
|
|
echo "Requesting OCSP status for each certificate"
|
|
opensslcmd ocsp -issuer intca.pem -cert client.pem -CAfile root.pem \
|
|
-url http://127.0.0.1:8888/
|
|
opensslcmd ocsp -issuer intca.pem -cert server.pem -CAfile root.pem \
|
|
-url http://127.0.0.1:8888/
|
|
opensslcmd ocsp -issuer intca.pem -cert rev.pem -CAfile root.pem \
|
|
-url http://127.0.0.1:8888/
|
|
# One query for all three certificates.
|
|
echo "Requesting OCSP status for three certificates in one request"
|
|
opensslcmd ocsp -issuer intca.pem \
|
|
-cert client.pem -cert server.pem -cert rev.pem \
|
|
-CAfile root.pem -url http://127.0.0.1:8888/
|