Skip to content

Instantly share code, notes, and snippets.

@freecastle
Created February 22, 2013 19:15
Show Gist options
  • Select an option

  • Save freecastle/5015826 to your computer and use it in GitHub Desktop.

Select an option

Save freecastle/5015826 to your computer and use it in GitHub Desktop.
Priming the OCSP cache, taken from http://unmitigatedrisk.com/?p=241
#!/bin/sh
ISSUER_CER=$1
SERVER_CER=$2
URL=$(openssl x509 -in $SERVER_CER -text | grep "OCSP - URI:" | cut -d: -f2,3)
openssl ocsp -noverify -no_nonce -respout ocsp.resp -issuer $ISSUER_CER -cert $SERVER_CER -url $URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment