本文介绍了如何使用Azure REST ARM API上传或更新云服务证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须上传云服务证书.
I have to upload a cloud service cert.
此URI上的PUT或POST不起作用subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates
PUT or POST on this URI is not working subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates
我收到"InvalidRequestUri",
I am getting "InvalidRequestUri",
请帮助我.
推荐答案
您可以使用以下内容:
"path": "subscriptions/%sub_Id%/resourceGroups/%rg_Name%/providers/Microsoft.ClassicCompute/domainNames/%cloudService_Name%/servicecertificates/SHA1-%THUMBPRINT%",
"body": {
"thumbprintAlgorithm": "SHA1",
"thumbprint": "%THUMBPRINT%",
"data": "%base64encodedcert%",
"certificateFormat": "pfx",
"password": "password" << this is in plain text I believe
}
其中%thumbprint%=证书的sha1指纹,而%base64encodedcert%您的pfx以base64编码.
Where %thumbprint% = sha1 thumbprint of your certificate, %base64encodedcert% your pfx encoded in base64.
这篇关于如何使用Azure REST ARM API上传或更新云服务证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!