简体   繁体   English

配给配置文件使用现有证书不起作用

[英]Provisioning profile use existing certificate doesn't work

I want to use push notifications. 我想使用推送通知。

What I have done so far: - Generated App ID - Enabled Push Notification for this App ID - Generated Development Certificate for Push Notification 到目前为止,我已完成的操作:-生成的应用程序ID-为此应用程序ID启用了推送通知-生成的推送通知开发证书

Now I want to generate a provisioning profil. 现在,我想生成一个配置文件概要文件。 I can see my generated Certificate in the member center, but I can't use it to generate a promising profile. 我可以在会员中心看到我生成的证书,但是我不能用它来生成有前途的个人资料。 It always wants me to generate a new certificate. 它总是要我生成一个新证书。 I can't select an existing one... 我无法选择现有的...

Do you know why? 你知道为什么吗?

When you are building app with push notification, you need to have two certificate. 使用推播通知构建应用程序时,需要具有两个证书。

So the reason is because you don't have certificate for your provision. 因此,原因是您没有提供证书。

Once you have created your app ID, please create iOS App Development certificate, and when you are generating development provision file select that certificate. 创建应用ID后,请创建iOS应用开发证书,然后在生成开发配置文件时选择该证书。

Also, you need to generate one more certificate for Push Notification and it will be used to generate pem file that is needed for server side push. 另外,您还需要为“推送通知”生成一个证书,该证书将用于生成服务器端推送所需的pem文件。

The certificate you generated is not intended for generating provisioning profiles, it is for authenticating your push server with apple's push notification service (APNS). 您生成的证书不是用于生成配置文件,而是用于使用Apple的推送通知服务(APNS)对您的推送服务器进行身份验证。

You only need to regenerate your current development provisioning profile to pick up the development push notification entitlement (even that may not be necessary!). 您只需要重新生成当前的开发配置文件,即可获得开发推送通知的权利(甚至可能没有必要!)。

The same applies for production push certificates and provisioning profiles. 生产推送证书和供应配置文件也是如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM