fastlane: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

New Issue Checklist

  • Updated fastlane to the latest version

Issue Description

Complete output when running fastlane, including the stack trace and command used
Command used: `fastlane beta`

Output:

[14:47:07]: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | cocoapods                           | 4           |
| 4    | gym                                 | 43          |
| 5    | pilot                               | 2           |
+------+-------------------------------------+-------------+

[14:47:07]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

[14:47:07]: Error finding relevant GitHub issues: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `connect': [!] SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

Click to see Fastfile

# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.99.0"

default_platform :ios

platform :ios do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
    cocoapods

  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    # match(type: "appstore") # more information: https://codesigning.guide
    gym(scheme: "Jokes", use_legacy_build_api: true) # Build your app - more options available
    pilot

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

  desc "Deploy a new version to the App Store"
  lane :appstore do
    # match(type: "appstore")
    # snapshot
    gym(scheme: "Jokes", use_legacy_build_api: true) # Build your app - more options available
    deliver(force: true)
    # frameit
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end


# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer
### Environment

fastlane version (run fastlane -v): 1.99.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? No

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? Not sure.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (15 by maintainers)

Most upvoted comments

I had the same problem with the command supply init. I changed my ruby version from 2.1.5 to 2.3.1 and it works now.

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.

@TKBurner Here is the output with the deliver --verbose option. I used deliver in this example. But I get the same error when using fastlane.

Click to see details

rtayal$ deliver --verbose
INFO [2016-08-30 12:37:38.52]: Login to iTunes Connect (username@example.com)

Looking for related GitHub issues on fastlane/fastlane...
Search query: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

URL: https://api.github.com/search/issues?q=SSL_connect%20returned=1%20errno=0%20state=SSLv3%20read%20server%20certificate%20B:%20certificate%20verify%20failed+repo:fastlane/fastlane
ERROR [2016-08-30 12:37:39.64]: Error finding relevant GitHub issues: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
/Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `connect': [!] SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:99:in `call'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:99:in `timeout'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:923:in `connect'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:852:in `start'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:1375:in `request'
        from /Users/rtayal/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:1133:in `get'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:80:in `perform_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-cookie_jar-0.0.6/lib/faraday/cookie_jar.rb:22:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:140:in `get'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:423:in `block in send_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:340:in `with_retry'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:422:in `send_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:397:in `request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:326:in `itc_service_key'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:276:in `block in send_shared_login_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:374:in `block in run_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:388:in `block in build_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/request.rb:26:in `block in create'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/request.rb:25:in `tap'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/request.rb:25:in `create'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:384:in `build_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:370:in `run_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/faraday-0.9.2/lib/faraday/connection.rb:177:in `post'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:423:in `block in send_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:340:in `with_retry'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:422:in `send_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:397:in `request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:275:in `send_shared_login_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/tunes/tunes_client.rb:126:in `send_login_request'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:369:in `do_login'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:227:in `login'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/client.rb:90:in `login'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/spaceship-0.32.0/lib/spaceship/tunes/spaceship.rb:22:in `login'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/runner.rb:14:in `login'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/runner.rb:7:in `initialize'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/commands_generator.rb:47:in `new'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/commands_generator.rb:47:in `block (2 levels) in run'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/commands_generator.rb:128:in `run'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/lib/deliver/commands_generator.rb:12:in `start'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1@global/gems/deliver-1.13.3/bin/deliver:5:in `<top (required)>'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1/bin/deliver:23:in `load'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1/bin/deliver:23:in `<main>'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
        from /Users/rtayal/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

I’m getting this issue as well, using same version 1.99.0.

using rvm, ruby version 2.1.1

EDIT: I ended up switching ruby version to 2.2.3 and got everything working correctly.

rvm use 2.2.3