cortesi/mitmproxy — pull request #59 by jimlloyd-st (2012-08-14 21:31:31+00:00)
Title: Adds --dummy-certs option to specify certdir

Aldo, as we discussed on the mitmproxy@googlegroups.com list, this PR makes it possible to preserve the generated dummy certs. Please take a look and let me know if I am missing anything that belongs with this commit, or if there are any cosmetic/style changes that you'd like me to include. I suggest you pull this PR into a branch. I've used the terse name 'certdir' but would be happy to change the branch name if you prefer something more informative.

If --dummy-certs=CERTSDIR is provided, use CERTSDIR as the location
for generating/finding the dummy certs. And in this case, preserve
the CERTSDIR directory on exit.