ios 更新推送证书并保持当前的 App Store 应用程序正常运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20106036/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:28:02  来源:igfitidea点击:

Renew Push certificate and keep current App Store App working

iospush-notificationapple-push-notifications

提问by Franck

I have an app on app store, which is using an iOS Provisioning Profile (Distribution) which is expired. This Profile contains Push Certificate that's also expired (and does not appear anymore in the portal).

我在应用商店上有一个应用,它使用已过期的 iO​​S 配置文件(分发)。此配置文件包含也已过期的推送证书(并且不再出现在门户中)。

Question 1: Is there a way to recreate the push certificate and then renew the profile? (I still have the push certificate (expired) on my keychain)?

问题 1:有没有办法重新创建推送证书,然后更新配置文件?(我的钥匙串上还有推送证书(已过期))?

Question 2: Do I need to re-submit the app to app store with a new profile that contains the new Push certificate?

问题 2:我是否需要使用包含新推送证书的新配置文件将应用重新提交到应用商店?

Since the push certificate is expired, I can probably not send notifications to the existing users of the app.

由于推送证书已过期,我可能无法向应用程序的现有用户发送通知。

回答by Eran

The push certificate cannot be renewed. You have to create a new one.

推送证书无法续订。你必须创建一个新的。

The push notification certificate is not part of the application build. Therefore for push to continue working you only have to create a new certificate and deploy the p12 file (or whatever other format you are using) at your server. You don't have to submit a new version of your app.

推送通知证书不是应用程序构建的一部分。因此,要让推送继续工作,您只需创建一个新证书并在您的服务器上部署 p12 文件(或您使用的任何其他格式)。您不必提交应用程序的新版本。

回答by Vladimir Grigorov

You cannot renew an existing push certificate. You just create a new one. But you don't need to. You'd better create a push notifications auth key. You can use it the same way as the certificate, but it doesn't expire and there is no need to renew it every year.

您不能续订现有的推送证书。您只需创建一个新的。但你不需要。您最好创建一个推送通知身份验证密钥。您可以像证书一样使用它,但它不会过期,也不需要每年更新。

You create the push notifications key from the Member Center, Keys tab:

您可以从会员中心的“密钥”选项卡创建推送通知密钥:

Create a new push notifications key

创建新的推送通知密钥

回答by Irfan Gul

Adding few words about VoIP push certificates.

添加有关 VoIP 推送证书的几句话。

Like Push certificates VoIP certificates cannot be renewed, you have to create a new one.

像推送证书 VoIP 证书不能续订,您必须创建一个新证书。

VoIP notifications will not work, if your VoIP certificate is expired or you revoke it.

如果您的 VoIP 证书已过期或您将其撤销,则 VoIP 通知将不起作用。

If you create a new certificate, you need to deploy the new p12 on server side. VoIP certificate is also not part of application build, so you don't have to submit app again.

如果创建新证书,则需要在服务器端部署新的 p12。VoIP 证书也不属于应用程序构建的一部分,因此您无需再次提交应用程序。

回答by Michael Kenworthy

For the Apple side:

对于苹果方面:

Your service:

您的服务:

  • Log in and find the "push certificate setup" area (for google this is Mobile Apple Push Cert
  • Download your services signing request
  • 登录并找到“推送证书设置”区域(对于谷歌这是Mobile Apple Push Cert
  • 下载您的服务签名请求

Apple:

苹果:

  • Upload your signing request
  • Download their response
  • 上传您的签名请求
  • 下载他们的回复

Your service:

您的服务:

  • Upload the signed response
  • 上传已签名的回复

At this point, everything should be set

此时,一切都应该设置