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

问题描述

我有创建通知中心实例的手臂我将带有密码的证书导入密钥库,现在我想将该证书用作苹果的通知中心的APN.

I've got arm that creates notification hub instanceI 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.

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

09-15 05:26