azure-c-shared-utility icon indicating copy to clipboard operation
azure-c-shared-utility copied to clipboard

How to connect to a proxy which requires ssl certificate and client certificate

Open yunhaoling opened this issue 4 years ago • 2 comments

hey,

We're having a scenario that we want to connect to azure service via a proxy that requires ssl certificate (server certificate) and client certificate (client-side certificate) for client to authenticate the identity of the proxy server and proxy server to authenticate the identity of the client.

I found that the http_proxy_io.c only allows for setting username and password, it doesn't allow setting certificates and it has no underlying io settings (interface/config stuff).

Is it supported in the current library? if it's supported, could you share me with the sample code how it works.

yunhaoling avatar Jan 26 '21 19:01 yunhaoling

Yes, it only supports "Basic" auth.

ericwolz avatar Jan 27 '21 00:01 ericwolz

hey @ericwol-msft , I have made a PR which allows for the http proxy io to be built on top of tlsio: https://github.com/Azure/azure-c-shared-utility/pull/512.

through this way, the server side tls certificate could be set on the underlying tlsio.

I'm not sure whether you have a guideline for the design, but I think we could collaborate on this together. :)

yunhaoling avatar Feb 08 '21 17:02 yunhaoling