ocspquery.sh 798 B

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