Created
April 6, 2018 08:48
-
-
Save vanbroup/fce08e33b4a5ee80e3b24ac4a1b065cf to your computer and use it in GitHub Desktop.
Create a POST OCSP request from an OCSP GET request URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo MFIwUKADAgEAMEkwRzBFMAkGBSsOAwIaBQAEFNHxtXb57sDBD3r8fDEkqcNiXXxhBBTqTnzUgC3lFYGGJoyCbcCYpM+XDwIMPVGgldv/1vnVuWtZ | base64 --decode > ocsp.req | |
# Print OCSP request | |
openssl ocsp -text -reqin ocsp.req | |
# Make OCSP request | |
curl -v -o ocsp.resp --data-binary @ocsp.req -H "Content-Type: application/ocsp-request" --url http://ocsp.example.com/ca1 --header "Host: ocsp.example.com" | |
# Print OCSP response | |
openssl ocsp -noverify -text -respin ocsp.resp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment