Skip to content

Can't find certificate in store when deploy in production. #21842

@darkzonecode

Description

@darkzonecode

I am try to setup "Example: Deploy to a non-Azure web hosting provider" in application settings json but it does not work. It can not find certificate in store, many developer have same problem. Can you please investigate issue and add detailed topic how to setup IdentityServer in appsetting.production.json

"IdentityServer": {
    // I just add .pfx file to hosted Blazor project and it work in Visual Studio, in prod IIS it show error404
    "Key": {
      "Type": "File",
      "FilePath": "MyIdentityServer.pfx",
      "Password": "P@ssw0rd"
    }

    // This not work in VS2019 or/and IIS , selfsigned cert created in iis or cert tool same issue cant find cert in certificate stores.
    //  "Key": {
    //    "Type": "Store",
    //    "StoreName": "WebHosting",
    //    "StoreLocation": "LocalMachine",
    //    "Name": "CN = MyIdentityServer"
    //  }
  }

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions