Python Forum
HTTPS connect with HTTPS proxy in between - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: HTTPS connect with HTTPS proxy in between (/thread-3528.html)



HTTPS connect with HTTPS proxy in between - sagk - May-31-2017

In my python program I need to send https request to a cloud server. I am using httplib2 package ( httplib2.HTTPSConnectionWithTimeout ). Every thing works fine. Now I have a proxy in between my client and origin server. This proxy port is https port with mutual TLS. So I need to have a mutual TLS between client and proxy. How do I achieve this. Can I get some sample code which can be used to achieve this.

Client -> https proxy ( Mutual TLS ) -> HTTPS server

( I can see proxy_info parameter, but that takes only http proxy details. )

Thanks in advance

~S


RE: HTTPS connect with HTTPS proxy in between - Larz60+ - May-31-2017

You can try looking here: http://nullege.com/
Not sure if you'll find anything, but with 65,090 projects, it's a good place to start


RE: HTTPS connect with HTTPS proxy in between - nilamo - May-31-2017

Is it not a transparent proxy? You shouldn't have to do anything.


RE: HTTPS connect with HTTPS proxy in between - sagk - Jun-01-2017

Hi

I checked nullege.com no luck ...

This is not a transparent proxy. We are using Apache Traffic Server as proxy and doing some source and destination filtering. Apart from this ATS does mutual TLS with client - which is a mandatory requirement.

Thanks
~S

One suggestion one of my friend suggested is - over ride httplib2 class and give proxy with mutual TLS functionality. Can some one help me to do this - I am not very much handy in the security area and how to do this .

thanks
~S