Skip to content

Instantly share code, notes, and snippets.

View Delermando's full-sized avatar

Delermando dos Santos Miranda Delermando

View GitHub Profile
@vanbroup
vanbroup / ocsp-request-script.sh
Created March 19, 2018 12:43
Make an OCSP request with bash via OpenSSL and and obtain the certificate (chain) from the TLS handshake, replay the request with CURL.
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo
echo "No hostname given to obtain certificate status"
echo "\tuse: $0 www.example.com"
echo
exit 1
fi