I noticed that the DevTools support for SXG doesn't show the attached OCSP response (in the "ocsp" field of the cert-chain+cbor). It would be useful to show some parsed metadata from this blob, e.g. in the "View certificate" dialog, since I could imagine a few ways that web devs could make mistakes here. Does this seem like a reasonable idea? Is this the right bug for that or should I open a new one?
After http://crrev.com/c/1205915 devtools says
"OCSP check failed: OCSP Response was expired or not yet valid."
instead of
"OCSP check failed. response status: 6, revocation status: 2".
net/ doesn't expose the parsed OCSP structure, so adding OCSP viewer in devtools will require some extra work. Maybe we can just show hexdump of the OCSP response so that developer can use "openssl ocsp -resp_text" to see its content?
#c12: That update may be enough, thanks. Would you still like me to file a new bug for additional debug info?
I also figured out a command-line way of parsing the OCSP response out of the CBOR using https://github.com/dflemstr/rq:
curl -s path.to/certurl | rq -q -c 'get "[1].ocsp"' | tr -d \" | xxd -r -p | openssl ocsp -respin - -text -noverify
So the hexdump became less critical.
Wow that one-liner is nice. I'm thinking about adding a small tool to WICG/webpackage reference implementation that can dump / diagnose cert chains.
Probably we don't need a new bug. Thanks!
Comment 1 by horo@chromium.org
, Feb 23 2018