Hello all,
I have been attempting you use this module with no luck. I feel I am getting closer but maybe y'all can help.
I am receiving an error that states
apn Error occurred with trace: +1ms Error: 7580:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:openssl\ssl\s3_pkt.c:1275:SSL alert number 40
As you can tell from the error I have debugging enabled but there is nothing tangible that I can go off here. After googleing "error:14094410" I am finding a couple of potential culprits.
1. They are saying that sslv3 alert means that apple doesn't use sslv3 for push notifications anymore. "Try to use explicitely sslv2://
or sslv3://
"
I am not sure how I can change the method in which I connect.
2. I have also found posts saying that the certificate location may be the problem.
I have this set to the default cert.pem and key.pem in the top level directory with my server.js (See Below)
---- Application
-config
-node_modules
-server.js
-cert.pem
-key.pem
-entrust_2048_ca.pem
-AppleWWDRCA.pem
-AppleIncRootCertificate.pem
I have also added the chained certificates in the options parameter
var options = {
cert : 'cert.pem',
key: 'key.pem',
ca: ['entrust_2048_ca.pem','AppleIncRootCertificate.pem','AppleWWDRCA.pem']
};
One additional note I have used the openssl client to successfully connect to the apn so I know the certs work. I am just unable to get them to work in node-apn.
Here is the output from the openssl s_client
Start Time: 1416378490
Timeout : 300 (sec)
Verify return code: 0 (ok)
Thanks for all the help in advance and wish me luck!