Closed hugoerg56 closed 7 years ago
Can't find 'cert.pem'
Error: ENOENT: no such file or directory, open 'cert.pem'
Btw ... please be careful with sharing your master and other keys :)
thanks @mignev, so I need to include a cert.pem ?
I say that b/c on the documentation i see:
ios: {
pfx: 'certs/mycert.p12', // the path and filename to the .p12 file you exported earlier.
cert: '', // If not using the .p12 format, the path to the certificate PEM to load from disk
bundleId: '', // The bundle identifier associated with your app
key: '', // If not using the .p12 format, the path to the private key PEM to load from disk
production: true // Specifies which environment to connect to: Production (if true) or Sandbox
}
say that cert is If not using the .p12 format. but im using a p12 file
This could be a few things. Of course the first would be to check if you have the folder certs with the .p12 file in it and its actually on the server.
2nd which trips up a lot of people production certs (in apples dash board for your bundle indent you can create a dev apns cert and production one). The production only ONLY works when you have submitted your build to apple for release or thought test flight. It will fail and not send anything if your just building it with Xcode to your device.
When testing and building with Xcode to device make sure to use your dev apns .p12 key.
You might want to check this link, and if you have solved this already please mark this as closed.
Closing as the push adapter was completely overhauled since, please reopen if the issue persists.
Testing the push notification adapter on heroku is working with Android, but on IOS get this (I supply a .p12 file):
Any idea what is missing?