-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Ssl proxy #606
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 proxy #606
Conversation
@rojer that PR looks reasonable - does it make sense to integrate? |
this is a near-copy of |
The functionality of mg_set_ssl_server is indeed similar to mg_set_ssl, but with mg_set_ssl it is impossible to change plain TCP connection into SSL one, while the functionality is required for the SSL proxy. |
actually, that is exactly what mg_set_ssl - add SSL context to plain TCP On Thu, Dec 24, 2015 at 1:13 PM Joseph Hindin [email protected]
|
The sample proxy with ( limited ) support for SSL bumping is available On Thu, Dec 24, 2015 at 7:18 PM, rojer [email protected] wrote:
|
if you want incoming connections to use SSL, you should call mg_set_ssl on On Thu, Dec 24, 2015 at 8:26 PM Joseph Hindin [email protected]
|
No, I don't want to start connection in SSL mode - the SSL bumping proxy starts plain connection and then change it to SSL after 'connect' method arrives. |
i thought proxy's job in handling CONNECT is supposed to be to just shuttle raw bytes back and forth, and it's up to the client to perform handshake. the only real difference in the new method is the setting of the new |
Yes, exactly - that is what SSL bumping does.
No, it doesn't when SSL handshake has to be performed on already live connection - with mg_set_ssl called on already live connection, ssl_begin never reports success.
I see your point; let me try to find the way to unify the functions. |
yeah, i get that, but other than setting the flags i don't see any real mg_set_ssl(nc, ...) why wouldn't it? On Thu, Dec 24, 2015 at 9:26 PM Joseph Hindin [email protected]
|
I am closing this pull request, as it is superseded by request #611 |
The patch introduces the function 'mg_set_ssl_server', supposedly quite useful for implementing explicit SSL proxy.