如何在 Windows Azure 上获取代码证书
我正在尝试创建我们自己的 WIF 身份提供程序并在 Azure 上运行它,但在尝试自动生成联合元数据时我遇到了困难。
此行似乎不适用于 Azure:
CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, signingCertificateName);
证书已上传到 Azure,我怎样才能获得它?
谢谢
I'm trying to create our own WIF Identity Provider and run it on Azure but I'm struggling when trying to automatically generate the Federation Metadata.
This line does not appear to work on Azure:
CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, signingCertificateName);
The certificate is uploaded to Azure, how can I get hold of it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
作为其他答案的细微变化,如果您只想获得一个证书而不是遍历所有证书,您可以执行以下操作:(
这也不是 Azure 特定的)
As a slight variation on other answers, if you just want to get one certificate rather than iterate through all of them you could do something like this:
(which also is not Azure specific)
试试这篇博文:
http://blogs.msdn.com/b/jnak/archive/2010/01/29/installing-certificates-in-windows-azure-vms.aspx
它建议如下代码:
Try this blog post:
http://blogs.msdn.com/b/jnak/archive/2010/01/29/installing-certificates-in-windows-azure-vms.aspx
It suggests code like: