简体   繁体   English

使用Powershell设置Azure广告证书身份验证

[英]setting up azure ad certificate auth using powershell

I am attempting to setup an Azure AD application to authenticate using a certificate. 我正在尝试设置Azure AD应用程序以使用证书进行身份验证。 I have been using this guide to successfully set this up after failing following this guide . 未能遵循本指南后,我一直在使用本指南成功进行设置。

I wish to now automate the process so it can be added to our general build scripts, looking at the docs for the New-AzureADApplication command it includes a parameter set(ApplicationWithKeyCredentialParameterSet) that takes a PSADKeyCredential . 我现在希望自动化该过程,以便可以将其添加到我们的常规构建脚本中,查看有关New-AzureADApplication命令的文档 ,其中包括一个参数集(ApplicationWithKeyCredentialParameterSet),该参数集采用PSADKeyCredential using this to create an application and then downloading the metadata gives me the following 使用它来创建应用程序,然后下载元数据给我以下内容

"keyCredentials": [
{
  "customKeyIdentifier": null,
  "endDate": "2015-12-31T11:00:00Z",
  "keyId": "586b4d3e-84cf-43ec-a913-a33ef5075fdc",
  "startDate": "2004-12-31T12:00:00Z",
  "type": "AsymmetricX509Cert",
  "usage": "Verify",
  "value": null
}

] ]

If I use the ApplicationWithKeyPlainParameterSet I get the same result. 如果我使用ApplicationWithKeyPlainParameterSet我会得到相同的结果。 Does anyone know why I am getting a null Value field? 有谁知道为什么我得到一个空值字段? If there is a different way I should be setting up the certificates I'm open to changing my process. 如果有其他方法,我应该设置证书,可以随时更改流程。

对于应用程序和服务主体,密钥凭据的“值”字段始终返回为“空”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM