title: Azure App Service site can not be reached
body: <p>I have used the following guidance:</p>
  <p><a href="https://gavilan.blog/2020/08/18/blazor-using-a-self-signed-certificate-for-identityserver4-in-azure-app-service/" rel="nofollow noreferrer">https://gavilan.blog/2020/08/18/blazor-using-a-self-signed-certificate-for-identityserver4-in-azure-app-service/</a></p>
  <p>In order to generate a certificate for a Blazor WASM web application that is hosted with azure as an app service. This works fine for the production version of the site.</p>
  <p>However I've come across a slight issue. I have another app service that is used for the purposes of hosting a development version of the same site, In order to preview/test functionality before pulling it to the master branch.</p>
  <p>My Dev pipeline builds with no issue and the release to the dev app service works as expected. However, when attempting to open the dev site after a successful release I am greeted with the dreaded 500.30 error:</p>
  <p>running the console indicates the issue as the following:</p>
  <p><a href="https://i.stack.imgur.com/htX1c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/htX1c.png" alt="console log" /></a></p>
  <p>It seems as though the site is attempting to find the certificate I have generated for the production site, the one which has a subject name matching the sites custom domain</p>
  <p><a href="https://i.stack.imgur.com/RrgVg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RrgVg.png" alt="appsettings" /></a></p>
  <p>Ive generated another certificate with a subject name that matches the dev sites domain, then updated the configuration settings located in the app service to override the subject name property and changed the &quot;WEBSITE_LOAD_CERTIFICATES&quot; to match the latest thumbprint.</p>
  <p>After doing this to 500.30 is replaced with the message that the site can't be reached.</p>
  <p>Unsure what it is I've missed here as I've replicated the steps i used to generate the certificate for the production site.</p>
  <p>The app service for dev has no custom domain but the production site does. Does a site need to have a custom domain for the certificate to work?</p>
  <p>Is this what is causing the issue?</p>
  <p>Thanks</p>