Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL exception using client cert on second call #750

Open
david-s-svedberg opened this issue Apr 10, 2020 · 2 comments
Open

SSL exception using client cert on second call #750

david-s-svedberg opened this issue Apr 10, 2020 · 2 comments

Comments

@david-s-svedberg
Copy link

david-s-svedberg commented Apr 10, 2020

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
Copy link
Author

david-s-svedberg commented Apr 10, 2020

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.

@waqar40
Copy link

waqar40 commented Sep 14, 2022

is this issue has been resolved and merged into master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants