fastlane: cert fails with error 'Connection reset by peer - SSL_connect'

New Issue Checklist

Issue Description

Unfortunately cert terminates with the error below.

I went through all the motions and updated the ruby version on my machine.

It might be that cert uses the wrong ruby version.

Running ruby --version yields ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

But running /usr/bin/ruby --version yields ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]

And which -a ruby yields /usr/local/bin/ruby /Users/XXX/.rbenv/shims/ruby /usr/local/bin/ruby /usr/local/bin/ruby /Users/XXX/.rbenv/shims/ruby /usr/local/bin/ruby /usr/bin/ruby

Whereas /usr/local/bin/ruby --version yields ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

This is rather confusing.

Is there a nice way to debug this?

Complete output when running fastlane, including the stack trace and command used

cert

±--------------±-------------------------------------------------+ | Summary for cert 1.4.3 | ±--------------±-------------------------------------------------+ | development | false | | force | false | | username | XXX | | team_id | XXX | | keychain_path | /Users/XXX/Library/Keychains/login.keychain | ±--------------±-------------------------------------------------+

[16:13:01]: Starting login with user ‘XXX’ [16:13:05]: Successfully logged in

16:13:19: Connection reset by peer - SSL_connect 16:13:19: 16:13:19: SSL errors can be caused by various components on your local machine. 16:13:19: Apple has recently changed their servers to require TLS 1.2, which may 16:13:19: not be available to your system installed Ruby (2.0.0) 16:13:19: 16:13:19: The best solution is to install a new version of Ruby 16:13:19: 16:13:19: - Make sure OpenSSL is installed with Homebrew: brew update && brew upgrade openssl 16:13:19: - If you use system Ruby: 16:13:19: - Run brew update && brew install ruby 16:13:19: - If you use rbenv with ruby-build: 16:13:19: - Run brew update && brew upgrade ruby-build && rbenv install ruby-2.3.1 16:13:19: - Run rbenv global ruby-2.3.1 to make it the new global default Ruby version 16:13:19: - If you use rvm: 16:13:19: - First run rvm osx-ssl-certs update all 16:13:19: - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local 16:13:19: 16:13:19: If that doesn’t fix your issue, please google for the following error message: 16:13:19: ‘Connection reset by peer - SSL_connect’ 16:13:19: -----------------------------------------------------------------------### Environment

Please run fastlane env and copy the output below. This will help us help you 👍

fastlane gems

Gem Version Update-Status
credentials_manager 0.16.2 ✅ Up-To-Date
fastlane_core 0.53.0 ✅ Up-To-Date
spaceship 0.36.2 ✅ Up-To-Date
deliver 1.14.5 ✅ Up-To-Date
snapshot 1.16.2 ✅ Up-To-Date
frameit 3.0.0 ✅ Up-To-Date
pem 1.3.2 ✅ Up-To-Date
cert 1.4.3 ✅ Up-To-Date
sigh 1.11.2 ✅ Up-To-Date
produce 1.2.1 ✅ Up-To-Date
gym 1.11.3 ✅ Up-To-Date
pilot 1.11.1 ✅ Up-To-Date
scan 0.13.1 ✅ Up-To-Date
supply 0.7.1 ✅ Up-To-Date
match 0.10.0 ✅ Up-To-Date
fastlane 1.106.2 ✅ Up-To-Date
screengrab 0.5.5 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded*

Loaded gems

Gem Version
highline 1.7.8
commander 4.4.0
terminal-table 1.4.5
json 1.8.3
multipart-post 2.0.0
faraday 0.9.2
faraday_middleware 0.10.0
dotenv 2.1.1
net-ssh 3.2.0
net-sftp 2.1.2
plist 3.1.0
security 0.1.3
krausefx-shenzhen 0.14.10
slack-notifier 1.5.1
rouge 1.11.1
xcpretty 0.2.4
xcode-install 2.0.7
word_wrap 1.0.0
multi_json 1.12.1
colored 1.2
babosa 1.0.2
rubyzip 1.1.7
gh_inspector 1.0.2
credentials_manager 0.16.2
fastlane_core 0.53.0
multi_xml 0.5.5
unf_ext 0.0.7.2
unf 0.1.4
domain_name 0.5.20160826
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 1.6.8
mini_magick 4.5.1
xcpretty-travis-formatter 0.0.4
uber 0.0.15
representable 2.3.0
retriable 2.1.0
mime-types-data 3.2016.0521
mime-types 3.1
hurley 0.2
little-plugger 1.1.4
logging 2.1.0
jwt 1.5.6
memoist 0.15.0
os 0.9.6
signet 0.7.3
googleauth 0.5.1
httpclient 2.8.2.4
google-api-client 0.9.15
i18n 0.7.0
thread_safe 0.3.5
tzinfo 1.2.2
minitest 5.9.1
activesupport 4.2.7.1
excon 0.53.0
claide 1.0.1
xcodeproj 1.3.2
bundler 1.13.3

generated on: 2016-10-26

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 45 (6 by maintainers)

Most upvoted comments

Hey everyone, we’ve been working on a new way to install and use fastlane, all you have to do is to download fastlane.zip and double click the install file. This will install fastlane with all its Ruby and OpenSSL dependencies, and should all work out of the box. We just finished building this, and would love your early feedback on this beta. Please let us know how it works for you and if you run into any problems 👍 Download the latest version here.

Thanks @ohwutup. I can also confirm that the zip works (same problem as everyone else in this thread). This would be a really good solution if you can bundle it with the install. Cause rbenv hasn’t really worked for me either with apple installing it’s own ruby and pointers to correct versions has been a true hazzle (see my stackoverflow question). So please update this thread whenever you come with an official version.

Worked for me on El Capitan, which is where I originally had the problem. For Sierra using brew worked.

Installing from the zip fixed it for me on Sierra

Thank you @ohwutup, this worked fine on El Capitan.

@ohwutup That worked 🎉 (the last time i said that, it stopped working again the next day, but let’s be optimistic 😀).

I used rvm which finally worked.

Install rvm

Then I followed the steps produce gave me

First run rvm osx-ssl-certs update all Then run rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local

@TKBurner As i said, when Ruby via Homebrew didn’t work i tried installing Ruby via RVM, but that failed during the installation. I think no implicit conversion of nil into String might be a bug in Ruby 2.3.1, but it’s the newest version available via Homebrew and RVM doesn’t install for me. It would help a lot, if we could just use system Ruby and not introduce another dependency that breaks all the time 😉

@cargath Thanks for following up. Are you on Sierra? Can you run fastlane env and share the output? Can you try using system ruby rather than a managed ruby? Thanks! We are looking into a longer term solution and should have updates soon 👍