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

Separate cert retrieval from actual backend request destination #108

Open
chrisgavin opened this issue Oct 16, 2015 · 3 comments
Open

Separate cert retrieval from actual backend request destination #108

chrisgavin opened this issue Oct 16, 2015 · 3 comments

Comments

@chrisgavin
Copy link

Hi. I was wondering how easy it would be to add an option (or if there already is one that I'm missing) to allow for forwarding decrypted traffic rather than re-encrypting it. What I want to do is take HTTPS requests, decrypt them and then forward them to another server that generates the response, effectively making sslsplit act like a dynamic SSL terminator.

Sorry I can't make a pull request myself, C is not my strong suit.

@droe
Copy link
Owner

droe commented Oct 16, 2015

I'm not sure what exactly you want to achieve, since the back-end server is - by definition - expecting HTTPS. Maybe HAProxy can do what you want, terminating SSL? If not, can you be more specific as to what exactly you are trying to achieve?

@chrisgavin
Copy link
Author

Sorry if I wasn't clear. I'm looking to send intercepted traffic to a server I control (that expects HTTP) rather than the originally intended server.

I was hoping there would be a way of specifying a proxyspec like so:

https 0.0.0.0 443 netfilter http 10.0.0.1 80

  • Listen for HTTPS on 0.0.0.0:443.
  • Use netfilter to find real IP address of server, retrieve certificate and generate one that matches.
  • Actually forward the traffic to an HTTP server running on 10.0.0.1:80, rather than the real IP.

After looking at the code it seems like this wouldn't be an easy change to make, so I might have to re-think how I can achieve this. Thanks so much for this really useful tool in anycase. If it doesn't come in useful for this particular project I'm sure I will find something fun to do with it in future.

@droe
Copy link
Owner

droe commented Oct 20, 2015

Ah okay. Yes, that is not a trivial change. It would require a separation of the retrieval of the certificate from the actual backend request, which is currently handled in the same TCP and SSL/TLS connection. Separation would add a separate second outgoing request (one for cert retrieval, one for the actual response retrieval). Not sure I want to implement this, but I will keep this issue around as a feature request.

@droe droe changed the title Option to decrypt traffic and forward it unencrypted. Separate cert retrieval from actual backend request destination Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants