使用TLS证书与使用身份验证令牌的iOS推送通知 [英] iOS push notifications using TLS certificate vs. using authentication tokens

查看:368
本文介绍了使用TLS证书与使用身份验证令牌的iOS推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读使用TLS证书的文档使用身份验证令牌

但是,除了解释如何配置每种方法外,文章还没有真正解释这两种方法的区别或优点/缺点.有人可以向我解释吗?

But besides explaining how to configure each, the articles don't really explain the differences or pros/cons of both approaches. Can somebody explain them to me?

推荐答案

基于令牌的身份验证较新,从本质上简化了APNS身份验证. 它基于您可以在Apple开发人员帐户上生成的公钥和私钥对.

Token-based authentication is newer and essentially simplifies APNS authentication. It is based on a public and private key pair that you can generate on your Apple developer account.

这是它变得更简单的主要原因:

Here are the main reasons why it is simpler:

  • 同一密钥可用于开发和生产应用,而 使用基于证书的证书时需要不同的证书 验证.
  • 同一密钥用于Apple中引用的所有应用程序 开发者帐户.基于证书的身份验证需要一个 每个应用程序的证书.
  • 密钥不会过期.证书确实会过期,并且需要每年左右续订.
  • The same key can be used for development and production apps whereas different certificates are needed when using certificate-based authentication.
  • The same key is used for all your apps referenced in your Apple developer account. Certificate-based authentication needs one certificate per app.
  • The key does not expire. Certificates do expire and need to be renewed every year or so.

2016年WWDC关于APNS的视频是一个很好的信息来源: https://developer.apple.com/videos/play/wwdc2016/724/

A good source of intel is the 2016 WWDC video regarding APNS: https://developer.apple.com/videos/play/wwdc2016/724/

这篇关于使用TLS证书与使用身份验证令牌的iOS推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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