Problems with cert-file

1,421 views
Skip to first unread message

blixs

unread,
Oct 17, 2011, 4:30:30 AM10/17/11
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
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
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.
Reply all
Reply to author
Forward
0 new messages