Hi there,
we have a strange problem on one of our app services, accessing our certificate in our dotnet core application.
We configured the "WEBSITES_LOAD_CERTIFICATES" environment variable with our certificate thumbprint like described in https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificate-in-code#make-the-certificate-accessible.
On starting the application, whe get the error on accessing the X509 Store With following exception:
[Error] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: An exception occurred while processing the key element 'key id="" version="1" />'.System.Security.Cryptography.CryptographicException: Access denied.
But when i access the certificate store on kudu tools console, i can get the certificate under CurrentUser/My.
It is also working on our production system like that. Just not on our test environment.
And it gets even stranger: We got it working for now with entering a random string into WEBSITE_LOAD_CERTIFICATES with the value 'ABCABCABCABCABCABCABCABCABCABCABCABCABCABC'
So right now it is working, but i have a strange feeling running the environment like that.
Thanks in advance for any help!