下载后可任意编辑.net 推送证书脚本openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -outform PEMopenssl pkcs12 -nocerts -out PushChat_Noenc.pem -in PushChatKey.p12openssl pkcs12 -export -in aps_developer_identity.pem -inkey PushChat_Noenc.pem -certfile PushChat.certSigningRequest -name "aps_developer_identity" -out aps_developer_identity.p12--------------------------------------openssl x509 -in aps_production_identity.cer -inform DER -out aps_production_identity.pem -outform PEMopenssl pkcs12 -nocerts -out PushChat_Noenc.pem -in PushChatKey.p12openssl pkcs12 -export -in aps_production_identity.pem -inkey PushChat_Noenc.pem -certfile PushChat.certSigningRequest -name "aps_production_identity" -out aps_production_identity.p12推送证书 for .nethttp://www.xueit.com/webdeveloper/show-10308-1.aspxPush 的原理:Push 的工作机制可以简单的概括为下图 图中,Provider 是指某个 iPhone 软件的 Push 服务器,这篇文章我将使用.net作为 Provider。APNS 是 Apple Push Notification Service(Apple Push 服务器)的缩写,是苹果的服务器。下载后可任意编辑上图可以分为三个阶段。第一阶段:.net 应用程序把要发送的消息、目的 iPhone 的标识打包,发给APNS。第二阶段:APNS 在自身的已注册 Push 服务的 iPhone 列表中,查找有相应标识的 iPhone,并把消息发到 iPhone。第三阶段:iPhone 把发来的消息传递给相应的应用程序, 并且根据设定弹出 Push 通知。 从上图我们可以看到。 1、首先是应用程序注册消息推送。 2、 IOS 跟 APNS Server 要 deviceToken。应用程序接受 deviceToken。下载后可任意编辑 3、应用程序将 deviceToken 发送给 PUSH 服务端程序。 4、 服务端程序向 APNS 服务发送消息。 5、APNS 服务将消息发送给 iPhone 应用程序。 无论是 iPhone 客户端跟 APNS,还是 Provider 和 APNS 都需要通过证书进行连接的。下面我介绍一下几种用到的证书。几种证书:一、*.certSigningRequest 文件 1、生成 Certificate Signing Request (CSR):2、填写你的邮箱和 Common Name,这里填写为 PushChat。选择保存到...