I'm trying to send ios notification with laravel (use laravel-push-notification) but I get this error:
Unable to connect: tls://gateway.sandbox.push.apple.com:2195: 2 (stream_socket_client(): Unable to set private key file /certificate/path.pem)
Here is my config:
'appNameIOS' => array(
'environment' =>'development',
'certificate' =>'../path.pem',
'passPhrase' => 'passPhrase',
'service' =>'apns'
),
But after I remove the quotes from passPhrase
I just getting HTTP error 500
without any error on response body.
I created .pem
files from this site step by step.
NOTE: I'm using MAMP server.