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

Find open port for MITM server / doesn't start a new server for every request #1

Open
23tux opened this issue Mar 19, 2013 · 2 comments

Comments

@23tux
Copy link
Owner

23tux commented Mar 19, 2013

For every HTTPS request, a new MITM server is started. This is because the certificate needs to set the host (see vcr_proxy.rb:32) for every request, because they could be different. And because of that, for every request a free port is needed.

How could this be improved? First it's slow, and second when more and more requests are made, the port numbers could run out.

@mislav
Copy link

mislav commented Jul 11, 2013

You should generate a CA certificate for your proxy server which a person can then add to the list of trusted certs on their system, e.g. OS X users can add it to their Keychain and set to trust all the time for SSL.

A la http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/

@23tux
Copy link
Owner Author

23tux commented Aug 24, 2013

thx, I'll have a look at this. sorry for the late response!

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