从azure rest api上载证书失败

2024-10-02 22:29:10 发布

您现在位置:Python中文网/ 问答频道 /正文

问题陈述:

在Azure AD下注册的应用中续订证书

问题:

我在从MS Graph API>;应用程序-修补程序更新应用程序属性

问题是,每当我尝试更改KeyCredentials并上载失败时,键值不能为null或为空。现在,当我从GET retrieve应用程序属性详细信息中检查其他证书时,它们是空的。我无法理解这个密钥值是什么,因为我试图使用OpenSSL在本地读取我的证书,但找不到任何值

是否有人可以在RestAPI中帮助我,或者是否有任何SDK可以帮助上传证书

问候


Tags: gt程序api应用程序get属性azurenull
1条回答
网友
1楼 · 发布于 2024-10-02 22:29:10

问题是每当我尝试更改密钥凭据并上载它时 失败,键值不能为null或空。

Ans: The Key Credential requires a value to be uploaded in key , otherwise it will fail.

现在,当我从GET-retrieve中检查其他证书时 应用程序属性详细信息,它们为空。

Ans: It by default shows the secure string values as null when you do a select then only you can find out the secure string values. enter image description here

我无法理解这个密钥值是什么,因为我试图使用OpenSSL在本地读取我的证书,但找不到任何值。

Ans: When you open the .cer file in wordpad it will show you something like :

  -BEGIN CERTIFICATE  -
<<sensitive_values>>
  -END CERTIFICATE  -

Basically the sensitive value can be used for the value of key .

但是假设我还需要完整的字段和键,我必须提供select=。。。是否有其他方法处理此问题?

Ans: There is no other way to get the values , except for selecting all the required fields you need.

有没有办法上传文件,而不是读取并请求修补数据?

Ans: Unfortunately No, As of now there is no direct way to upload a cert file instead of reading it and then uploading it.

相关问题 更多 >