Live data from Hacker News

Making your own web debugging proxy

twiinsen.com

21–24 of 24 posts

Re: Making your own web debugging proxy

#21
post #18

Earlier quoted context omitted.

Is this what it looks like? A service asking people to download and install a new root CA certificate ? Don't ever do that.

Fiddler does this, but locally - I should check how long the expiry is, though.

Lots of tools generate CA certs locally. I don't have a problem with that. This is a tool that asks you to download a new root CA cert from a website. That's crazy.

Re: Making your own web debugging proxy

#22
post #21

Earlier quoted context omitted.

Fiddler does this, but locally - I should check how long the expiry is, though.

Lots of tools generate CA certs locally. I don't have a problem with that. This is a tool that asks you to download a new root CA cert from a website . That's crazy.

We're in agreement there.

Re: Making your own web debugging proxy

#23
post #18

Hey. About HTTPS proxy, i can offer you a better way, rather than creating your own CA, generating certs for any domain which is too much of work & configuration + compiling OpenSSL. I have done that already, as free service working on this address: https://ca.parasite.io You can easily implement with LUA module to download certs for any domain & download it as Zip or JSON or pfx. Contains all files you need. root, i…

Is this what it looks like? A service asking people to download and install a new root CA certificate ? Don't ever do that.

As in homepage it states that strictly for developer's use. And maybe I should add for the other's who are not developer not to install root certificate. Thank you for reminding.

Re: Making your own web debugging proxy

#24
post #12

You can do that using MiTM Proxy as well, as explained here: https://dadario.com.br/mitming-ssl-tls-connections/

I use mitmproxy and mitmdump a lot. I really recommend it. Someone else said it's not easy to hack on, I do not agree. It's a really approachable project and great if you're doing anything HTTP related. That said, there are some pain points: * libmproxy is not recommended for external projects. Instead you should use "inline scripts" (embedding functionality in mitmproxy). This is a pain point for me since I wanted t…

Mitmproxy author here. It is kind of interesting that one of the best ways to get feedback for your software is reading random comments on the internet - thanks for that! :)

> libmproxy is not recommended for external projects.

This is true (for the reasons outlined in [1]), but your use case is the reason why we also offer the libmproxy API. That being said, you'll see improvments here in the next release (and hopefully a lot of stability afterwards).

> The dumped streams are not in a standard format either

We would love to use JSON, but JSON does not really work with streaming. We use tnetstrings (not serialized python objects) instead, and we do schema migrations for the last 5 releases now. We have an example on how to read dumpfiles in Python in the repo [2]. :)

> Performance

Thanks for bringing that up. Scaling beyond a few concurrent users is not a design goal for mitmproxy currently - otherwise we probably should start rewriting it in Rust/Go. If you need anything large-scale, the submission here is vastly superior. :)

[1] http://docs.mitmproxy.org/en/stable/scripting/mitmproxy.html [2] https://github.com/mitmproxy/mitmproxy/blob/master/examples/...

Post reply on HN