Been three days since I am struggling with this. I was trying to implement PushPlugin into my Ionic cordova project. Everytime I run ruby pushGCM.rb, I get the following SSL certificate error
I have been using PushPlugin github repo for a sample push notification example using ionic cordova framework. Everytime I call
ruby pushGCM.rb, I get the following error
C:\NewP\plugins\com.phonegap.plugins.PushPlugin\Example\server>ruby pushGCM.rb
C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in connect': SSL_connect returned=1 errno=0 state=SSL v3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in
block in connect’
from C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb:52:in timeout' from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:918:in
connect’
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:862:in do_start' from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:851:in
start’
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:1367:in request' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httparty-0.13.1/lib/httparty/request.rb:93:in
perform’
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httparty-0.13.1/lib/httparty.rb:521:in perform _request' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/httparty-0.13.1/lib/httparty.rb:473:in
post’
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:95:in send_to_server' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:80:in
send_push_as_json’
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:60:in prepare_and_send' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:41:in
block in send_notifications’
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:40:in each' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:40:in
send_notifications’
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/pushmeup-0.2.0/lib/pushmeup/gcm/core.rb:35:in send_notification' from pushGCM.rb:9:in
’
I have checked the path, installed what not in my system, most posts said rvm is the solution but I cant get to work with this on Windows.