服务结构群|安装链式证书 [英] Service Fabric Cluster | Install Chained Certificate

查看:79
本文介绍了服务结构群|安装链式证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景

Background


  • 我们需要在ASF集群节点上安装证书链(安装.pfx,将证书安装到受信任的root& Intermediate证书存储区),以便服务可以调用
    外部API
  • < li style ="color:#44546A"> 我们将证书上传到Key vault并使用ARM模板将其安装到VM Scale集
  • 证书已上传到所有节点的证书存储区,但< g class =" gr_ gr_13 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep"
    data-gr-id =" 13" ID = QUOT 13 QUOT;>链< / g取代;没有创建&外部API调用从集群中失败
  • 在我的本地开发机器上执行此操作,链接已正确创建& API调用有效(参见下文< g class =" gr_ gr_12 gr-alert gr_spell gr_inline_cards gr_run_anim
    ContextualSpelling ins-del" data-gr-id =" 12" id =" 12">屏幕截图< ; / g>)
  • We need to install a certificate chain (install a .pfx which installs certificates to trusted root & Intermediate certificate store) on our ASF cluster nodes so the services can call an external API
  • we uploaded the certificate to Key vault and installed it to VM Scale set using ARM template
  • Certificate got uploaded to cert store of all nodes but <g class="gr_ gr_13 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="13" id="13">chain</g> is not created & external API calls are failing from cluster
  • When doing this on my local development machine, the chaining is correctly created & API call works (See below <g class="gr_ gr_12 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="12" id="12">screen shots</g>)

查询

Queries


    < li style ="color:#44546A"> 有没有人遇到类似的问题&为ASF集群解决了它
  • 有没有安装这些证书的其他方法?我们也有.cer文件,我们可以直接安装到各自的商店,但目前无法按照KV支持pfx 

推荐答案

如果您需要证书来授权外部服务(客户端证书),则不需要证书链。 (根据您从商店获得证书的方式,使用X509Store您可以找到指定  validOnly 到
false的证书)

If You need the certificate to authorize to external service (client certificate) then the certificate chain should not be needed. (Depending on the way You get the certificate from the store, f.e. using X509Store You can find certificates specifying validOnly to false)

但是您的服务运行的用户需要访问证书的私钥。

But the user under which Your service runs needs to have access to the private key of the certificate.

我不知道ARM模板是否在证书的私钥中添加(或可以添加)ACL。

I don't know whether the ARM template adds (or can add) ACL to the certificate's private key.

看看  stackoverflow.com  或  https://docs.microsoft.com  (赠送
NETWORK服务访问证书的私钥)

Take a look at stackoverflow.com or https://docs.microsoft.com (Give NETWORK SERVICE access to the certificate's private key)


这篇关于服务结构群|安装链式证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆