2

我正在使用https://github.com/ileitch/rapns并且它与 Android 应用程序配合得很好,但是当我在其中创建 iOS 应用程序时出现 SSL 证书错误。我已经按照那里的 wiki 中的指南进行操作,但我当然不是 SSL 和/或 APN 服务器和证书方面的专家。错误是

[2013-03-12 12:48:13] [ERROR] [ios_app] Exception raised during startup. Notifications will not be delivered for this app.
[2013-03-12 12:48:13] [ERROR] OpenSSL::SSL::SSLError, SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate unknown
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/connection.rb:109:in `connect'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/connection.rb:109:in `connect_socket'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/connection.rb:26:in `connect'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/delivery_handler.rb:8:in `initialize'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/app_runner.rb:31:in `new'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/apns/app_runner.rb:31:in `new_delivery_handler'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:130:in `start_handler'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:70:in `block in start'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:70:in `times'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:70:in `start'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:31:in `sync_app'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:20:in `block in sync'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:20:in `each'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon/app_runner.rb:20:in `sync'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/lib/rapns/daemon.rb:51:in `start'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/gems/rapns-3.1.0/bin/rapns:36:in `<top (required)>'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/bin/rapns:23:in `load'
/var/deploy/platter_dev/web_head/shared/bundle/ruby/1.9.1/bin/rapns:23:in `<main>' 

我已经安装了“认证”gem,并且还添加了通常推荐用于这些问题的 fix_ssl 初始化程序,并且 OpenSSL 在我的本地 Mac 和 Ubuntu 登台服务器上都处于 < 版本 1。

4

1 回答 1

0

您必须创建一个 AppID:登录 iOS 开发者中心:http: //developer.apple.com/iphone/。单击 iOS 配置门户并配置您的新应用程序以使用推送通知。

您可以按照此处列出的第一步:http ://www.pushwoosh.com/programming-push-notification/iphone-configuration-guide/

于 2013-04-04T20:06:11.197 回答