Python Forum

Full Version: HTTPS connect with HTTPS proxy in between
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
Is it not a transparent proxy? You shouldn't have to do anything.
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