IdentityServer4 获取发现文档 提示 Keyset is missing

 客户端请求提示 Keyset is missing

解决办法

添加以下代码

services.AddIdentityServer(options =>
            {
                options.Events.RaiseErrorEvents = true;
                options.Events.RaiseInformationEvents = true;
                options.Events.RaiseFailureEvents = true;
                options.Events.RaiseSuccessEvents = true;
            })
              .AddDeveloperSigningCredential()//解决Keyset is missing 错误
              .AddTestUsers(TestUsers.Users)
              .AddInMemoryIdentityResources(IdpConfig.GetApiResources())
              .AddInMemoryApiResources(IdpConfig.GetApis())
              .AddInMemoryClients(IdpConfig.GetClients());
原文地址:https://www.cnblogs.com/Zing/p/13359253.html