azure - Service Fabric 群集节点无法从证书获取私钥

标签 azure ssl azure-service-fabric

我有一个运行单个应用程序的 5 节点服务结构集群。我使用自签名证书对我的应用程序设置进行了加密。该证书已上传到 keyvault,并且我已将此 URL 馈送到我的应用程序中。我可以看到证书正在我的虚拟机上安装,并且运行 Invoke-ServiceFabricDecryptText 也会返回正确的解密值。但是,当查看我的管理控制台时,我看到以下错误:

Error event: SourceId='System.Hosting', Property='Activation:1.0'.
There was an error during activation.Failed to ACL folders or certificates required by application. Error:0x80090014

查看节点日志,我看到这些与上述错误相对应的条目:

2016-9-7 20:09:44.541,Informational,2148,2580,Common.CryptoUtility,GetCertificate(LocalMachine, MY, FindByThumbprint:)
2016-9-7 20:09:44.541,Informational,2148,2580,Common.CryptoUtility,GetCertificate: match found: thumbprint = [thumbprint], expiration = 2017-09-02 16:08:04.000
2016-9-7 20:09:44.541,Error,2148,2580,Common.CryptoUtility,CryptAcquireCertificatePrivateKey failed. Error:0x80090014
2016-9-7 20:09:44.541,Error,2148,2580,Common.SecurityUtility,Failed to get the Certificate's private key. [thumbprint]. Error: 0x80090014
2016-9-7 20:09:44.541,Warning,2148,2580,Hosting.ProcessActivationManager,ACLing private key filename for thumbprint [thumbprint]. ErrorCode=0x80090014

我迷茫了。

最佳答案

最终成为一个糟糕的证书。我最初上传到 Keyvault 的证书是使用 Posh 中的 New-SelfSignedCertificate 的现有证书。然后,我通过使用 Invoke-AddCertToKeyVault 命令和 -CreateSelfSignedCertificate 开关动态添加第二个 key 保管库,它成功了。

关于azure - Service Fabric 群集节点无法从证书获取私钥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39378519/

相关文章:

azure - az ad 用户列表 -to 表 --filter "<options>(surname, ' 棕色')"

delphi - 如何在 Delphi 中使用 Indy 10 和 OpenSSL 通过 HTTPS 下载/上传文件?

azure - Azure Service Fabric 上通过 https 的无状态 Web Api

c# - Service Fabric 无状态服务器自定义 UDP 监听器

azure - 需要在 Azure Service Fabric 上实现 ICommunicationListener 的 ZeroMQ

azure - Windows Azure 实例到底是什么?

azure - 如何监视 Azure 存储容器/子文件夹中 Blob 的创建并触发逻辑应用发送电子邮件

.net - 将 Office 安装到 Windows 容器中(servercore :ltsc2019) failed with error code 17002

multithreading - Asio SSL 流线程安全

ssl - 手动更新 let's encrypt 证书