You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Java client for Apple Push Notification service (APNs)
I have build a system that will handle all push-communication of
different apps I have made in ejb. The certs file of each app don´t
have password because it will be use in a Debian/ubuntu server, so I
had use a rsa encrypt of my private key. And is converted to a .pem
file. The pem-file is then saved to a blob in a database.
My question is; when I try to use it (after converted to a temp-pem-
file) I got a error like this:
Caused by: com.notnoop.exceptions.InvalidSSLConfig:
java.io.IOException: toDerInputStream rejects tag type 66
at com.notnoop.apns.internal.Utilities.newSSLContext(Utilities.java:
102)
at
com.notnoop.apns.ApnsServiceBuilder.withCert(ApnsServiceBuilder.java:
139)
at
com.notnoop.apns.ApnsServiceBuilder.withCert(ApnsServiceBuilder.java:
114)
Is this because I have to add every key to a java keystore, or because
java-apns don't support other cert then .p12?
Mahmood Ali
unread,
Oct 17, 2011, 10:18:16 AM10/17/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-apn...@googlegroups.com
Greetings,
The library doesn't support pem files (and it's not obvious to me how to support them) yet. Also, the Sun/Oracle SDK doesn't support passwordless certificate.
Hope that helps!
Regards, - Mahmood
blixs
unread,
Oct 17, 2011, 10:22:11 AM10/17/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Java client for Apple Push Notification service (APNs)
Ok. Thanks. Then I have to change it. I thought that if it support
p12, it should support *.pem, since must system support pem. And have
to see if it work at all in a debian system. Some system don't allow
use of password for the ssl-comunication like ubuntu server.