ocsp.test 473 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # ocsp-stapling.test
  3. server=www.globalsign.com
  4. ca=certs/external/ca-globalsign-root-r3.pem
  5. [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
  6. # is our desired server there?
  7. ./scripts/ping.test $server 2
  8. RESULT=$?
  9. [ $RESULT -ne 0 ] && exit 0
  10. # client test against the server
  11. ./examples/client/client -X -C -h $server -p 443 -A $ca -g -o -N
  12. RESULT=$?
  13. [ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1
  14. exit 0