Skip to content

Instantly share code, notes, and snippets.

@jcjones
Last active August 29, 2015 14:22
Show Gist options
  • Save jcjones/5b131a18c36647ba62f2 to your computer and use it in GitHub Desktop.
Save jcjones/5b131a18c36647ba62f2 to your computer and use it in GitHub Desktop.
Run from the Boulder directory so that ./test/test-ca.pem is available.
#!/bin/bash
# run from Boulder dev directory
OCSP="http://ocsp.int-x1.letsencrypt.org/"
CA_CERT="test/test-ca.pem"
SERIAL=0x02000000000000016DD50EDFA6DAAF26
openssl ocsp -no_nonce -reqout /tmp/ocsp.req \
-issuer ${CA_CERT} \
-serial ${SERIAL} \
-text
curl -vv -k ${OCSP} -X POST \
--data-binary @/tmp/ocsp.req \
-H "Content-Type:application/ocsp-request" \
> /tmp/ocsp.rsp
openssl ocsp -issuer ${CA_CERT} -CAfile ${CA_CERT} -respin /tmp/ocsp.rsp -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment