SSL session id context in WEBrick

M

Magnus Bodin

I have what I believe is a strange OpenSSL-error in WEBrick: When doing
requests from mozilla firefox to my SSL-enabled WEBrick server, I can
only do one request before it get totally lost and WEBrick chokes with
OpenSSL::SSL::SSLError "session id context uninitialized". The client
just says "The connection to 172.24.0.8 has terminated unexpectedly. Some data
may have been transferred"

It works fine when the client is Net::HTTP with https, i.e. doing a
Net::HTTP#start, #get, #get, #get and #finish.

I use peer verification with
OpenSSL::SSL::VERIFY_PEER | ::OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
and a simple CA_PATH.

In my test environment, both client and server shares the same CA.

It seem also to work without this flaw in MSIE/win32 and with Safari/OSX.

What do I need to reconfigure in my WEBrick server to cope with this
(mis-)behavior?

-- magnus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,158
Messages
2,570,882
Members
47,414
Latest member
djangoframe

Latest Threads

Top