如何将密钥保管库证书绑定到 apns 通知中心 [英] how to bind key vault certificate to apns notification hub

查看:37
本文介绍了如何将密钥保管库证书绑定到 apns 通知中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建通知中心实例的手臂我将带密码的证书导入密钥保管库,现在我想将该证书用作 Apple 通知中心的 apns.

I've got arm that creates notification hub instance I imported certificate with password into key vault, and now I want to use that certificate as apns of notification hub for apple.

我正在尝试这样的事情,但总是收到错误的请求:

I am trying something like this but always get bad request:

  "type": "Microsoft.NotificationHubs/namespaces/notificationHubs",
  "apiVersion": "2017-04-01",
  "name": "[concat(parameters('namespaces_nhn_ecosystem_name'), '/nh-ecosystem-', parameters('environmentSuffix'))]",
  "location": "[resourceGroup().location]",
  "dependsOn": [
    "[resourceId('Microsoft.NotificationHubs/namespaces', parameters('namespaces_nhn_ecosystem_name'))]"
  ],
  "properties": {
    "authorizationRules": [],
    "apnsCredential": {
      "properties": {
        "apnsCertificate": "apns-cert-secret", <-name of the certificate in key vault 
        "certificateKey": "certpasswordhere",
        "endpoint": "gateway.sandbox.push.apple.com"
      }
    }
  }

推荐答案

Azure 通知中心不支持从 KeyVault 提取 PNS 凭据(目前).客户已经要求这样做,它在路线图上,但今天不支持.

Azure Notification Hubs does not support pulling PNS credentials from KeyVault (today). Customers have asked for this, and it's on the roadmap, but not supported today.

这篇关于如何将密钥保管库证书绑定到 apns 通知中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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