我们如何使用 Azure Keyvault 私钥/公钥进行应用程序注册身份验证

问题描述 投票:0回答:1

我正在做以下事情:

  1. 使用 Azure Keyvault UI 生成密钥对
  2. 下载公钥
  3. 尝试将其作为证书上传到应用程序注册 UI 中

我收到一条错误消息,指出 PEM 文件不是有效证书。

我有一张 Azure 支持票,但我想知道是否有其他人经历过这种情况并找到了解决方法?

azure-keyvault public-key azure-application-registration
1个回答
0
投票

要使用 Azure Key Vault 私钥/公钥进行应用程序注册身份验证,请检查以下各项:

转到 Azure Key Vault -> 选择您的 Key Vault -> 证书 -> 生成/导入 -> 生成 -> 创建

enter image description here

enter image description here

选择证书,然后选择版本并设置YES启用并刷新页面

enter image description here

enter image description here

要使用 Key Vault 证书进行 Azure AD 应用程序身份验证,您需要下载

.CER
.PFX
文件:

enter image description here

enter image description here

现在,在应用程序中上传

.CER
证书,并且
.PFX
证书必须位于您的本地系统中。

证书上传成功:

enter image description here

参考:

asp.net core - Azure Web App 使用应用程序注册中的证书来对用户进行身份验证 - 堆栈内存溢出,作者:Qiang Fu

© www.soinside.com 2019 - 2024. All rights reserved.