how to bind key vault certificate to apns notification hub

谁说我不能喝 提交于 2019-12-11 19:46:32

问题


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"
      }
    }
  }

来源:https://stackoverflow.com/questions/58130771/how-to-bind-key-vault-certificate-to-apns-notification-hub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!