APNS certificate expiry issue for Hybrid application

时间:2015-07-14 05:50:38

标签: apple-push-notifications ibm-mobilefirst

Got the APNS certificate for my Hybrid app (using Mobilefirst) generated yesterday. The expiry date for the certificate is 12 July 2016. But when I try to build the app using Mobile first application am getting an error saying "The APNS certificate expired on Oct 31, 2014 18:49." The certificate name is apns-certificate-production.p12

I tried recreating the environment, clearing the cache etc.. but of no help

Any help regarding solving this issue is appreciable.

enter image description here

1 个答案:

答案 0 :(得分:0)

我按照以下方式生成了我的p.12,但我没有遇到这个错误:

  1. 在Apple Developer网站上创建证书后,我下载了.cer文件
  2. "安装"双击它.cer文件,并将其添加到我的钥匙串。
  3. 将证书扩展到Keychain并选择它和其中的私钥
  4. 导出并提供了密码
  5. 将.p12文件复制到myProject \ apps \ myApp文件夹
  6. 在application-descriptor.xml中为iPhone元素添加了pushSender子元素,并将证书密码作为其值
  7. Run As>在MobileFirst Development Server上运行
  8. 构建已经过去了。