theturtle32 / WebSocket-Node

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling OCSPRequest

MasterJames opened this issue · comments

I recently was trying to figure out how I might use 'websocket' to handle OCSPRequest requests. These are to send back some OCSPRequest response in the OCSP stapling fashion.
https://www.grc.com/revocation/commentary.htm
I noted here an example
nodejs/node-v0.x-archive#25820
It shows how to go about of doing it in Node 11.6+ via the latest TLS server, so I was just wondering if there was any feedback on having the same primary websocket server handle this important stuff?

It was added to nodejs in v 0.11.13 apparently
https://nodejs.org/api/tls.html#tls_event_ocsprequest

It seems this is better handled at the initial node package 'http' and 'https' level. My apologies for not seeing this sooner. Anyway it's something rarely thought about or needed, but let's call it a nice feature request.