<div>&lt;/lurking&gt;</div>Not able to help you with your question, but I was browsing github earlier and came across some ICAP code using Twisted:<div><a href="https://github.com/diegows/misc/blob/master/adv-indonesia/usr/local/bin/icap-server.py">https://github.com/diegows/misc/blob/master/adv-indonesia/usr/local/bin/icap-server.py</a></div>
<div><br></div><div>hth</div><div><br></div><div>&lt;lurking&gt;</div><div><br><br><div class="gmail_quote">On Thu, Sep 8, 2011 at 7:04 AM, Laurens Van Houtven <span dir="ltr">&lt;_@lvh.cc&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>Hi :)</p>
<p>Context for those who haven&#39;t heard of minitrue: it&#39;s a twisted powered HTTP proxy that is designed to lie. It lets you modify requests and responses.</p>
<p>So far, it&#39;s been a mostly academic exercise, which I suppose could have real-world applications. I&#39;d like to learn some more about how to use minitrue with SSL/TLS next.</p>
<p>I would like to use something like Squid&#39;s sslbump support. The easiest way to do that would probably be to use ICAP and get minitrue to support publishing request and response manglers as proxylets (which would be Resources, sort of, since ICAP is kind-of HTTP. Whether I should write a custom parser or leverage the existing HTTP support is something I&#39;m not entirely sure of yet. I suppose the two theses are not mutually exclusive).</p>


<p>Has anyone used twisted&#39;s proxy support with ssl? Ideally, I would let minitrue take a ca cert, and have it create and sign the appropriate cert on the fly; IIUC this is how content filtering proxies that support ssl right now work. </p>


<p>cheers</p>
<p>lvh<br></p>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br></div>