Open Ajay-MS opened 4 years ago
@ahmelsayed Do you know how this would work?
in AppService the cert if is passed to the application using X-ARR-ClientCert
header. I don't know if there is anything specific in AppService, Functions, or dotnet core that will automatically populate HttpContext.Connection.ClientCertificate
for you.
Locally, I think this will work if we update https://github.com/Azure/azure-functions-core-tools/blob/6478ce04fd380c113cff659d0e36eea5a42aff3b/src/Azure.Functions.Cli/Actions/HostActions/StartHostAction.cs#L166
to
listenOptins.UseHttps(new HttpsConnectionAdapterOptions
{
ClientCertificateMode = ClientCertificateMode.AllowCertificate,
ClientCertificateValidation = (_, __, ___) => true,
ServerCertificate = certificate
});
but we should follow up with @fabiocav about that.
Same issue here... Was there ever any update to this
I am executing my Azure function locally on HTTPS with the application arguments:
where
server.pfx
is a self-signed certificate.In the postman setting, I have set certificate for the URL corresponding to the function app.
In Azure function, I am reading certificate as follow:
clientCert
instance is alwaysnull
. Am I missing some steps here ?