Home rpush openssl Error with password
Reply: 1

rpush openssl Error with password

jh.shin
1#
jh.shin Published in 2018-01-12 03:56:37Z

while using rpush to send push via APNS (apple-app) I got errors like below. It seems errors are due to problem with ruby updates, (2.4.0) However, I'm not sure why this password length problem has occurred and how to deal with this.

OpenSSL::OpenSSLError, password must be at least 4 bytes
/home/deploy/project/shared/bundle/ruby/2.4.0/gems/rpush-3.0.2/lib/rpush/daemon/tcp_connection.rb:128:in `initialize'
/home/deploy/project/shared/bundle/ruby/2.4.0/gems/rpush-3.0.2/lib/rpush/daemon/tcp_connection.rb:128:in `new'
/home/deploy/project/shared/bundle/ruby/2.4.0/gems/rpush-3.0.2/lib/rpush/daemon/tcp_connection.rb:128:in `setup_ssl_context'
/home/deploy/project/shared/bundle/ruby/2.4.0/gems/rpush-3.0.2/lib/rpush/daemon/tcp_connection.rb:39:in `connect'
/home/deploy/project/shared/bundle/ruby/2.4.0/gems/rpush-3.0.2/lib/rpush/daemon/apns/feedback_receiver.rb:57:in `check_for_feedback'

Current version of openssl is like below

2.4.0 :001 > require 'openssl'
 => true
2.4.0 :002 > RUBY_VERSION
 => "2.4.0"
2.4.0 :003 > OpenSSL::OPENSSL_VERSION
 => "OpenSSL 1.0.2g  1 Mar 2016"
2.4.0 :004 > OpenSSL::VERSION
 => "2.0.2"
2.4.0 :005 >
Junan Chakma
2#
Junan Chakma Reply to 2018-01-12 04:06:04Z

Upgrade your openssl gem version to 2.0.5. The 4 bytes limit has been removed here

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.371936 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO