I cant add ssl binding to my Azure Function. I have uploaded the certificat, but when i try to bind it to a custom domain name I get "No certificates match the selescted hostname" as shown in the picture

No certificates match the selescted hostname

  • 1
    In your picture, you've blanked out the hostname you're trying to match with the cert. That makes it a lot harder to help you. But it does look as though there may be another dot in the name, e.g. dtstatic.SOMETHING.dynamictemplate.com. If so, the text above the hostname clearly says that's not going to work. – Jenny D Jan 3 at 8:07
  • It is like dtstatistics-xxxxx.dynamictemplate.com - so only one subname – InnovateIt Jan 3 at 8:11
  • You've reloaded the webpage after uploading the cert? – Jenny D Jan 3 at 8:28
  • There may be some issue with the certificate itself. Could you include the public part in your post (click "edit" under the text, then paste in the PEM certificate file you got from wherever you purchased your certificate - not the private key, just the public part!) – Jenny D Jan 3 at 8:31
  • The certificate works fine for other subdomains. – InnovateIt Jan 3 at 9:15

After talking to Microsoft Support - This was the resolution.

There was some conflict in the backend web space


We are able to resolve the SSL binding to custom domain issue after creating the same function app to another resource group. We have done the following steps to achieve SSL binding to custom domain. 1) Deleted the function app 2) Create the new function app with the same name 3) Uploaded the private certificate into the function app 4) Added custom domain into function app. 5) Able to bind the SSL certificate to the custom domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.