@azure There will be some changes you'd need to make to your code to adapt it for use in Azure.
Please start by reviewing this document here, which goes into detail about how to load your certificate and then how to call it in your code.
After loading your certificates you can verify if these were properly loaded through the Kudu Console.
- First, you will have to go to your app service in the Azure Portal and select the “configuration” blade under “settings”.
- Then, select ”+New application setting”
- Add the WEBSITE_LOAD_CERTIFICATES setting and in value type * as this will allow all types of certificates.
- Click on “OK” and then on Save Settings
- You can then access Kudu Console by accessing the following link <webapp name>.scm.azurewebsites.net
- Select PowerShell
- As you are in a multitenant environment, multiple tenants share the same physical instance of the app, so in this case, the certificates are stored in current user.
- After selecting PowerShell you can run the following command dir cert:\currentuser\my as shown in the below example. You should be able to display the loaded certificates.
Can you please verify if you can view the certificate following the above steps?