Search code examples
c#azurewcfazure-functionsazure-appservice

How to install public certificate .cer in Azure Function?


I'm trying to make a call to a wcf service from an Azure function hosted in Azure. The wcf service requires a certificate.

I'm able to call to wcf service when I do debug in local machine (I import successfully the cert) but in Azure I got the error "The HTTP request was forbidden with client authentication scheme 'Anonymous'."

I believe this is due to missing certificate in Azure side.

I try to upload the .cer to Public Key Certificates (.cer) but still doesn't work. My Function app still returns the same error "The HTTP request was forbidden with client authentication scheme 'Anonymous'."

Please let me know how to make my request accept in wcf service? It would be nice if we have solution in Azure Portal rather than doing PowerShell.

Note: I use the same certification and source code when I do debug in local machine and when I publish to Azure Function.

Thank you.

enter image description here


Solution

  • thank you for your time.

    The issue has been resolved in WCF side. The WCF guy adds the Azure Function IP address to the white list and it works. It's nothing to do with Azure Function.

    Looks like the same issue with this one.