[Libwebsockets] Accessing SSL client certificate data during the websocket session

Bruce Perens bruce at perens.com
Thu Jun 18 19:48:30 CEST 2015

SSL client certificates validate in protocol 0 (HTTP) and that's the only
time we get a callback to handle them. I need to pass the data to the
instantiation of the websocket client in protocol 1. About the only way I
can think of doing this is to pull the SSL * out of the wsi's private
fields and then call X509 *cert = SSL_get_peer_certificate(ssl). Am I
missing something?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20150618/8879b5a2/attachment.html>

More information about the Libwebsockets mailing list