I guess you may forget to add application setting
on portal, if your code has no problem.
We need to give Azure App Service permission to use the newly uploaded certificate. For that:
- Go to Configuration in the menu of your Azure App Service
- Click on New application setting
- In Name, put: WEBSITE_LOAD_CERTIFICATES
- In Value, put the Thumbprint that you copied from the previous section.
- Click Ok, and don’t forget to click Save
If it doesn't work, pls read below blogs, you will find out the issues.
Suggestion
You can refer to this blogs to check the steps, I believe it will useful to you.
Blazor: Using a Self-Signed Certificate for IdentityServer4 in Azure App Service
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…