Mock APNs / testing server supporting ssl connections.
Before you run the mock server you need to create a ssl certificate
openssl req -new -x509 -keyout private.pem -out cert.pem -nodes
Make apnsmock runnable by doing:
chmod u+x apnsmock
Be sure you have the required dependencies:
pip install gevent
Then start up the server passing a valid ssl certificate's absolute path:
./apnsmock --cert "/absolute/path/to/certificate" --key "/absolute/path/to/private_key"
Warning: please mind that mock-apns will start up even if the paths are wrong.