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

Get rid of missing SSL context errors #970

Merged
merged 4 commits into from Feb 25, 2015

Conversation

Projects
None yet
3 participants
@rix0rrr
Contributor

rix0rrr commented Jan 28, 2015

This occurs a lot when using client cetificates, and then connections
are dropped a couple of times before they are succesfully estbalished:

[0B573E01:0B613C01 2015.01.28 17:11:07.064 WRN] Handling of
connection failed: Failed to accept SSL tunnel: error:140D9115:SSL
routines:SSL_GET_PREV_SESSION:session id context uninitialized
(336433429)

Assigning the local hostname as a context ID fixes this error.

As per OpenSSL documentation:

https://www.openssl.org/docs/ssl/SSL_CTX_set_session_id_context.html

Get rid of missing SSL context errors
This occurs a lot when using client cetificates, and then connections
are dropped a couple of times before they are succesfully estbalished:

    [0B573E01:0B613C01 2015.01.28 17:11:07.064 WRN] Handling of
    connection failed: Failed to accept SSL tunnel: error:140D9115:SSL
    routines:SSL_GET_PREV_SESSION:session id context uninitialized
    (336433429)

Assigning the local hostname as a context ID fixes this error.
@schuetzm

This comment has been minimized.

Show comment
Hide comment
@schuetzm

schuetzm Feb 22, 2015

Contributor

Can't comment on the content, but your indentation is off (see the diff view https://github.com/rejectedsoftware/vibe.d/pull/970/files).

Contributor

schuetzm commented Feb 22, 2015

Can't comment on the content, but your indentation is off (see the diff view https://github.com/rejectedsoftware/vibe.d/pull/970/files).

@rix0rrr

This comment has been minimized.

Show comment
Hide comment
@rix0rrr

rix0rrr Feb 23, 2015

Contributor

Updated indentation.

Contributor

rix0rrr commented Feb 23, 2015

Updated indentation.

@s-ludwig

View changes

Show outdated Hide outdated source/vibe/stream/openssl.d
@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Feb 25, 2015

Member

Okay, thanks. Merging.

Member

s-ludwig commented Feb 25, 2015

Okay, thanks. Merging.

s-ludwig added a commit that referenced this pull request Feb 25, 2015

Merge pull request #970 from rix0rrr/ssl-session-context
Get rid of missing SSL context errors

@s-ludwig s-ludwig merged commit 1f9c5cd into vibe-d:master Feb 25, 2015

1 check failed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment