简体   繁体   English

ios中推送通知的服务器端问题

[英]server side issue for Push notification in ios

Hi I am trying to use push notification in my app and i ma following the engineyard tutorail, and I am struck on the last step, Making the connection! 嗨,我正在尝试在我的应用程序中使用推送通知,并且在机房tutorail之后进行操作,最后一步,建立连接令我震惊! my node agent/_header.js says mac verify error! 我的节点agent / _header.js说Mac验证错误! I dont know what is that. 我不知道那是什么。 I have tried changing the passPhrase to the password, created a new certificate, p12 file and tried the same. 我尝试将passPhrase更改为密码,创建了新的证书,p12文件并尝试了相同的操作。 This is the error am getting. 这是错误越来越。 I know its been already posted in the forum, but still i couldnt solve it 我知道它已经在论坛上发布了,但我仍然无法解决

c.context.loadPKCS12(pfx); ^ Error: mac verify failure at Object.exports.createCredentials (crypto.js:145:17) at Object.exports.connect (tls.js:1331:27) at Agent.connect (/Users/AAA/Documents/Po/poservices/node_modules/apnagent/lib/apnagent/agent/live.js:113:17) at Object.<anonymous> (/Users/AAA/Documents/Po/poservices/agent/_header.js:72:7) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) SIVAs-MacBook-Air:poservices AAA$

Later I found the answer for this. 后来我找到了答案。

The issue was I export the file from keychain in the parent of the key. 问题是我从钥匙的父钥匙串中导出文件。

What needs to be done is Extend our key in keychain from the child(key), and then export it. 需要做的是从子项(key)中扩展我们的钥匙串中的密钥,然后将其导出。 在此处输入图片说明

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

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