Azure让我们加密带有标识符的应用程序在目录中找不到

时间:2018-02-01 16:00:03

标签: azure lets-encrypt

我正在尝试让Let的加密与Azure应用程序一起使用,但是我收到以下错误:

Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS70001: 
Application with identifier '8c7f7b34-5dd4-4e6d-a2d1-6204230a353c' was not found in the directory $directory.onmicrosoft.com 
Trace ID: 5ddd33fb-1492-471c-b150-eae50dd71c00 Correlation ID: 58dd627a-19ba-4e1e-936a-20459ff96864 Timestamp: 2018-02-01 15:46:46Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetResponseSyncOrAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.<SendPostRequestAndDeserializeJsonResponseAsync>d__0`1.MoveNext() --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task`1 task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireToken(String resource, ClientCredential clientCredential) at LetsEncrypt.Azure.Core.ArmHelper.GetToken(IAzureEnvironment model) in J:\Projects\letsencrypt-siteextension\LetsEncrypt.SiteExtension.Core\ArmHelper.cs:line 41 at LetsEncrypt.Azure.Core.ArmHelper.GetWebSiteManagementClient(IAzureWebAppEnvironment model) in J:\Projects\letsencrypt-siteextension\LetsEncrypt.SiteExtension.Core\ArmHelper.cs:line 19 at LetsEncrypt.SiteExtension.Controllers.HomeController.Index(AuthenticationModel model) ErrorCode: unauthorized_client StatusCode: 400

我遵循了这个指南:https://gooroo.io/GoorooTHINK/Article/16420/Lets-Encrypt-Azure-Web-Apps-the-Free-and-Easy-Way/20073但是在第三点之前得到了错误。

我没有得到错误,因为我应该使用正确的应用程序ID:

PS C:\WINDOWS\system32> $app.ApplicationId
Guid
----
8c7f7b34-5dd4-4e6d-a2d1-6204230a353c

0 个答案:

没有答案