pistache icon indicating copy to clipboard operation
pistache copied to clipboard

SSL exception using client cert on second call

Open david-s-svedberg opened this issue 4 years ago • 2 comments

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.

david-s-svedberg avatar Apr 10 '20 19:04 david-s-svedberg

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.

david-s-svedberg avatar Apr 10 '20 19:04 david-s-svedberg

is this issue has been resolved and merged into master?

waqar40 avatar Sep 14 '22 13:09 waqar40