1,把.cer文件转换成.pem文件
openssl x509 -in aps_developer_identity.cer -inform der -out PushChatCert.pem
2,把私钥Push.p12文件转换成.pem文件
$ openssl pkcs12 -nocerts -out PushChatKey.pem -in Push.p12
输出内容如下:
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying – Enter PEM pass phrase:
你首先需要为.p12文件输入passphrase密码短语,这样OpenSSL可以读它。然后你需要键入一个新的密码短语来加密PEM文件。还是使用”pushchat”来作为PEM的密码短语。你需要选择一些更安全的密码短语。
注意:如果你没有键入一个PEM passphrase,OpenSSL将不会返回一个错误信息,但是产生的.pem文件里面将不会含有私钥。
3,把私钥和证书整合到一个.pem文件里
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
测试:
1,测试是否能连到测试服务器
telnet gateway.sandbox.push.apple.com 2195
2,再次连接,这次用我们的SSL证书和私钥来设置一个安全的连接:
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem
分享到:
相关推荐
Apple Push Notification Service简介
使用android push notification service 实现即时通知
这是一个用于与Apple Push Notification Service(APNS)进行交互的小型C ++ 11项目。 您可以将推送通知发送到iOS设备或Safari浏览器(仅适用于OS X 10.9)。 它还处理反馈服务。 安装 首先在global.hpp中设置证书...
即时通讯相关的资料: ...http://www.push-notification.mobi/get_api_key.php android smack源码分析——接收消息以及如何解析消息: http://www.cnblogs.com/not-code/archive/2011/08/01/2124340.html MTQQ ...
Basic4Android最新最全类库,包含B4a上市后截止到2017.04.24的库文件。希望对大家有帮助。以下为文件列表。 2012/08/09 周四 01:55 35,901 ABExtDrawing.jar 2012/08/09 周四 01:55 191,079 ABExtDrawing.xml 2010/...
围绕 Apple Push Notification Service 和 Google Cloud Messaging Service 的简单 HTTP 包装器 安装 安装 Node.js(0.10.x,不是 0.11.x) 安装Redis 克隆源 运行npm install 运行 Pushlet $ 节点pushlet.js ...
Notification Service Specification (通知服务)标准规范
NULL 博文链接:https://wosyingjun.iteye.com/blog/2241628
apns(Apple Push Notification Service) 证书 p12(Personal Information Exchange) 证书 描述文件(Provisioning Profiles) 附录1: 开发准备相关的网址 几种开发者帐号区别 关键区别 真机调试流程 基本概念 条件和...
Erlang库,用于使用Apple Push Notification Service。 。 。 。 如何使用 在您的rebar.config中设置依赖项: {deps, [ {dp_push, ".*", {git, "https://github.com/yzh44yzh/dp-push.git", "v1.0"}} ]}. ...
用于与Apple Push Notification Service(APN)交互的Python库 安装 从GitHub下载源代码或使用easy_install: $ easy_install apns 样品用法 import time from apns import APNs , Frame , Payload apns = APNs ( ...
类型:NotificationDemo 功能:从网上下载apk存储到手机指定目录,并在通知栏里显示其下载进度,如果下载错误,或者不想要该apk可以删除 ...文件流、网络下载链接协议、读写权限、Handler、Notification、跑马灯
无间隙具有连接池的独立Apple Push Notification Service 该软件包内置到一个独立的应用程序中,该应用程序侦听服务器(使用软件包)以推送任何消息。 Gapless使用池来与Apple推送通知服务器建立多个连接。 这样可以...
Laravel开发-laravel-push-notification Push Notification 服务端支持 app的推送通知发送工具,支持结果的apns和安装的gcm
1.server 2.client 3.操作配置流程 参考:http://blog.csdn.net/knockheart/article/details/9708961
EM-APN-EventMachine的Apple Push通知 我们想要: 简化了持久连接用例 支持带有收据的增强型协议 用法 简而言之: require "em-apn" # Inside a reactor... notification = EM::APN::Notification.new(token, :...
apns Go程序包可与Apple Push Notification Service交互特征该库实现了一些我们在其他任何一个库中都找不到的功能: 客户端寿命长-Apple的文档说,您应该保持而不是为每个有效负载创建新的连接新协议的使用-Apple...
android notification Service 文件下载
使用Tokio和异步发送的用于Rust的HTTP / 2 Apple Push Notification Service。 需要帮助 主要作者目前没有任何Apple手机,因此很高兴能与合作者一起获得所需设备和Apple开发人员帐户的帮助。 如果您碰巧有他们并愿意...
推杆OS X和iOS应用程序和框架可与Apple Push Notification Service(APN)一起使用安装使用安装Mac应用程序: brew cask install pusher 或下载最新的Pusher.app二进制文件:另外,您可以使用将包括: pod 'NWPusher...