azure - Azure 功能:在证书中找不到具有此指纹的证书
问题描述
我正在创建连接到执行 PnP 命令的 azure 函数。我已经创建了文档中提到的证书。我总是得到Cannot find certificate with this thumbprint in the certificate store.Exception :Type
解决方案
关于这个问题,请参考以下步骤
- 创建自签名证书
New-PnPAzureCertificate -OutPfx pnp.pfx -OutCert pnp.cer
创建 Azure AD 应用程序
配置权限
Office 365 SharePoint Online(应用程序权限)
Sites.FullControl.All
TermStore.ReadWrite.All
User.ReadWriteAll
创建函数
将 pfx 文件上传到 Azure 函数
az webapp config ssl upload --certificate-file "e:\cert\pnp.pfx" --name "<function app name>" --resource-group "" --certificate-password "" --query thumbprint --output tsv
- 配置函数以允许函数读取证书
az functionapp config appsettings set --name <app-name> --resource-group <resource-group-name> --settings WEBSITE_LOAD_CERTIFICATES=<comma-separated-certificate-thumbprints>
8 功能码
Connect-PnPOnline -Tenant <>.onmicrosoft.com -ClientId <the appid of the ad application> -Thumbprint <comma-separated-certificate-thumbprints> -Url https://<>.sharepoint.com
推荐阅读
- r - 是否有可用于将 4000(DEM)光栅图像合并为一个光栅的 R 包?
- c++ - 对中间变量使用 float 类型会使程序运行比 int 类型慢,为什么?
- javascript - 从 src 中删除斜杠的 img 标签
- c# - 如何定义一个类型,其性别可以在代码中动态更改而不更改其类型的所有属性的类型?
- c# - System.Data.SqlClient.SqlException:'找不到存储过程'Core.SetContextInfo'。' 我收到此错误不知道为什么
- android - android - 系统应用 jni 库加载路径
- optimization - 有没有办法使用 EIgen 库优化矩阵乘法?
- html - 如何将文本输入移动到输入字段的顶部?
- c# - SharpDx 调用 dc.Draw ,使用 nvwgf2um.dll 快速退出
- discord.py - 使用 webhook 回复消息