| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # Example querying OpenSSL test responder. Assumes ocsprun.sh has been | 
|  | 2 | # called. | 
|  | 3 |  | 
|  | 4 | OPENSSL=../../apps/openssl | 
|  | 5 | OPENSSL_CONF=../../apps/openssl.cnf | 
|  | 6 | export OPENSSL_CONF | 
|  | 7 |  | 
|  | 8 | # Send responder queries for each certificate. | 
|  | 9 |  | 
|  | 10 | echo "Requesting OCSP status for each certificate" | 
|  | 11 | $OPENSSL ocsp -issuer intca.pem -cert client.pem -CAfile root.pem \ | 
|  | 12 | -url http://127.0.0.1:8888/ | 
|  | 13 | $OPENSSL ocsp -issuer intca.pem -cert server.pem -CAfile root.pem \ | 
|  | 14 | -url http://127.0.0.1:8888/ | 
|  | 15 | $OPENSSL ocsp -issuer intca.pem -cert rev.pem -CAfile root.pem \ | 
|  | 16 | -url http://127.0.0.1:8888/ | 
|  | 17 | # One query for all three certificates. | 
|  | 18 | echo "Requesting OCSP status for three certificates in one request" | 
|  | 19 | $OPENSSL ocsp -issuer intca.pem \ | 
|  | 20 | -cert client.pem -cert server.pem -cert rev.pem \ | 
|  | 21 | -CAfile root.pem -url http://127.0.0.1:8888/ |