azure-c-shared-utility
azure-c-shared-utility copied to clipboard
How to connect to a proxy which requires ssl certificate and client certificate
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.
Yes, it only supports "Basic" auth.
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. :)