Push notification - Caused by: java.io.IOException: toDerInputStream rejects tag type 45

折月煮酒 提交于 2019-11-30 13:07:43
DeRauk

As stated here java-apns is expecting the .p12 private key, not the .pem file.

The instructions for creating a .p12 file on a mac are in the first link, but if you're using the openssl tool on linux you can create it with:

openssl pkcs12 -export -inkey mykey.key -in mykey.pem -out mykey.p12

I just found the answer. When I try to generate a P12 key, I need to select both, a private key and certificate in keychain access.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!