I am trying to send push notifications to iOS devices.
I created a developer certificate for APNS and associated it with the application identifier.
Then I started using Pushy ( https://github.com/relayrides/pushy ) to establish a connection to the APNS server:
final PushManagerFactory<SimpleApnsPushNotification> pushManagerFactory =
new PushManagerFactory<SimpleApnsPushNotification>(
ApnsEnvironment.getSandboxEnvironment(),
PushManagerFactory.createDefaultSSLContext( DEV_CERT_P12__PATH, DEV_CERT_P12__PASSWORD )
);
final PushManager<SimpleApnsPushNotification> pushManager = pushManagerFactory.buildPushManager();
pushManager.registerFailedConnectionListener(new MyFailedConnectionListener());
pushManager.start();
....
public static class MyFailedConnectionListener implements FailedConnectionListener<SimpleApnsPushNotification> {
public void handleFailedConnection(
final PushManager<? extends SimpleApnsPushNotification> pushManager,
final Throwable cause) {
System.out.println("ERROR - "+ cause.toString());
if (cause instanceof SSLHandshakeException) {
}
}
}
I get this error: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown.
I use a P12 file that I created from the private key of the certificate that I linked to the application on developer.apple.com

After a lot of searching, I managed to get some information on why I can't get this to work in the Apple Doc :
. TLS APN, CA . OS X, . , . - Entrust SSL.
, .
.
.