Following the description on the wiki page I updated my keystore to include all the keys from Apple's apns service. However, when I talk to the feedback server, I do still get an SSLHandshakeException. Before the update, the Exception was
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_expired
I think it would be helpful if this project would use some kind of AllTrustingSSLSocketFactory, not bothering with what f***up Apple is doing with it's servers.
I think there is still a case to be made to have such feature. However, you can create your own trusting SSLContext.
Rather than using withCert(), you can use withSSLContext where the SSLContext trusts all certificates: http://www.exampledepot.com/egs/javax.net.ssl/TrustAll.html .
Yes, you're right. I'll give withSSLContext a try.
I reconsidered my position on this one and I think that feature belonged in the library. I'll add it hopefully in time for 0.2.0.
Closing old issue, please reopen if still desired.