pistache
pistache copied to clipboard
SSL exception using client cert on second call
I don't think this is the same as #549 since I don't get the same errors. I've set up tests in .net calling my server that requires client cert. First call works but on the second call (to other or same endpoint) fails and
error:140D9115:SSL routines:ssl_get_prev_session:session id context uninitialized
is written in the console on the server.
After digging around in source of open ssl, it seems that the function
SSL_CTX_set_session_id_context
Has to be called in order for client certificates to work. This is stated here (search for client certificate).
I've created a PR #751 to expose this function, it should be called with e.g. the name of the application.
Since it seems to be a requirement for client certs to work, it might be better to add it as a new parameter to useSSLAuth
instead, come to think of it.
is this issue has been resolved and merged into master?