0

在为苹果推送通知创建 ssl 证书和私有证书时,我曾经遵循 raywenderlich.com 的步骤。为推送通知创建和配置证书的步骤做得很好,但我坚持使用“输入 PushKey.pem 的密码短语”的地方。用于输入我在上一步中为此密钥提供的密码短语。它总是说密码太小并且字符最少 4 到 1024,我输入了 5 个字符。但是在此步骤中不接受相同的密码短语...任何人都可以帮助我...我是 iOS 新手

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey1.pem
Enter pass phrase for PushChatKey1.pem:
575:error:28069065:lib(40):UI_set_result:result too small:/SourceCache/OpenSSL098/OpenSSL098-44/src/crypto/ui/ui_lib.c:850:You must type in 4 to 1023 characters

谢谢

伊尼扬

4

1 回答 1

0

When you finished create CSR file, if you go to the Keys section of Keychain Access, you will see that a new private key has appeared in your keychain. Right click it and choose Export.

Make sure that you used this p12 file to push notification.

You could create new CSR file if need!

TUT:http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Good luck!

于 2013-12-11T08:55:24.067 回答