I'm using GCM gem to send push notifications to Android Devices. In production server, notifications are sent perfectly, but when I try to send push notifications in my local, I get the following error:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Note that GCM API KEY
is set with the same key as production server, and I'm using the same send_notification
params that production server. I also add my local IP address in Google Developer Console project credentials
(daily updated).
What I am missing?
NOTE: Using RoR v3.2.13
, Ruby v2.0.0
, OSx El Capitan
, and I have installed openssl v1.0.2a-1