Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reading PFX fails in Azure #2820
Hi, we have ASP.NET Core 2.0 application which connects to MySQL server with SSL. We are connecting by using a PFX file. When we do the same on our local machines, everything works. When we tried to load the certificate through App Service first and then still using the pfx for connecting, it suddenly started to work, yet the application doesn't interact with the certificate store at all. What's this caused by? Could it have something to do with how the applications are sandboxed in App Service, because since it works on our local machines and none of the developer has the certificate loaded in their computer (other than the PFX reference to filesystem).
The error we got is:
Loading private key from certificate PFX requires User profile which is disabled by default. When you followed this, you add an AppSettings to load certificate with automatically enabling User profile; hence it works.
You could also enable User profile explicitly without going thru load certificate route by appSettings