{"action":"closed","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/9915","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/9915/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/9915/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/9915/events","html_url":"https://github.com/fastlane/fastlane/issues/9915","id":247103731,"number":9915,"title":"Need information on how to add certificate authorities to fastlane","user":{"login":"theothermattm","id":392778,"avatar_url":"https://avatars1.githubusercontent.com/u/392778?v=4","gravatar_id":"","url":"https://api.github.com/users/theothermattm","html_url":"https://github.com/theothermattm","followers_url":"https://api.github.com/users/theothermattm/followers","following_url":"https://api.github.com/users/theothermattm/following{/other_user}","gists_url":"https://api.github.com/users/theothermattm/gists{/gist_id}","starred_url":"https://api.github.com/users/theothermattm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theothermattm/subscriptions","organizations_url":"https://api.github.com/users/theothermattm/orgs","repos_url":"https://api.github.com/users/theothermattm/repos","events_url":"https://api.github.com/users/theothermattm/events{/privacy}","received_events_url":"https://api.github.com/users/theothermattm/received_events","type":"User","site_admin":false},"labels":[{"id":394836387,"url":"https://api.github.com/repos/fastlane/fastlane/labels/status:%20auto-closed","name":"status: auto-closed","color":"ededed","default":false},{"id":389827016,"url":"https://api.github.com/repos/fastlane/fastlane/labels/status:%20waiting-for-reply","name":"status: waiting-for-reply","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-08-01T15:13:35Z","updated_at":"2017-10-04T16:32:45Z","closed_at":"2017-10-04T16:32:45Z","author_association":"NONE","body":"### New Issue Checklist\r\n\r\n- [ X ] Updated fastlane to the latest version\r\n- [ X ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nWhen running `fastlane supply init` we are getting an error with SSL connections, and we *know why*. We have SSL inspection running on our corporate network and we need to add a certificate authority to any tools making https/ssl connections. \r\n\r\nThe error message below is very helpful, however, we've googled like crazy to find out how to set certificate authorities for fastlane, to know avail.  We need to know the proper place to put certificate authorities so fastlane will use them.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\nmy-pc:fastlane$ fastlane supply init\r\nfastlane could not check for updates error: SSL_connect returned=1 errno=0 state=error: certificate verify failed\r\n[14:49:11]: -----------------------------------------------------------------------\r\n[14:49:11]: SSL_connect returned=1 errno=0 state=error: certificate verify failed\r\n[14:49:11]: \r\n[14:49:11]: SSL errors can be caused by various components on your local machine.\r\n[14:49:11]: \r\n[14:49:11]: The best solution is to use the self-contained fastlane version.\r\n[14:49:11]: Which ships with a bundled OpenSSL,ruby and all gems - so you don't depend on system libraries\r\n[14:49:11]:  - Use Homebrew\r\n[14:49:11]:     - update brew with `brew update`\r\n[14:49:11]:     - install fastlane using:\r\n[14:49:11]:       - `brew cask install fastlane`\r\n[14:49:11]:  - Use One-Click-Installer:\r\n[14:49:11]:     - download fastlane at https://download.fastlane.tools\r\n[14:49:11]:     - extract the archive and double click the `install`\r\n[14:49:11]: -----------------------------------------------------------\r\n[14:49:11]: for more details on ways to install fastlane please refer the documentation:\r\n[14:49:11]: -----------------------------------------------------------\r\n[14:49:11]:         :rocket:       https://docs.fastlane.tools          :rocket:   \r\n[14:49:11]: -----------------------------------------------------------\r\n[14:49:11]: \r\n[14:49:11]: You can also install a new version of Ruby\r\n[14:49:11]: \r\n[14:49:11]: - Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`\r\n[14:49:11]: - If you use system Ruby:\r\n[14:49:11]:   - Run `brew update && brew install ruby`\r\n[14:49:11]: - If you use rbenv with ruby-build:\r\n[14:49:11]:   - Run `brew update && brew upgrade ruby-build && rbenv install 2.3.1`\r\n[14:49:11]:   - Run `rbenv global 2.3.1` to make it the new global default Ruby version\r\n[14:49:11]: - If you use rvm:\r\n[14:49:11]:   - First run `rvm osx-ssl-certs update all`\r\n[14:49:11]:   - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local`\r\n[14:49:11]: \r\n[14:49:11]: If that doesn't fix your issue, please google for the following error message:\r\n[14:49:11]:   'SSL_connect returned=1 errno=0 state=error: certificate verify failed'\r\n[14:49:11]: -----------------------------------------------------------------------\r\n\r\n[!] SSL_connect returned=1 errno=0 state=error: certificate verify failed\r\n```\r\n\r\n\r\n### Environment\r\n\r\n<details><summary>✅ fastlane environment ✅</summary>\r\n\r\n### Stack\r\n\r\n| Key                         | Value                                       |\r\n| --------------------------- | ------------------------------------------- |\r\n| OS                          | 10.12.6                                     |\r\n| Ruby                        | 2.2.4                                       |\r\n| Bundler?                    | false                                       |\r\n| Git                         | git version 2.11.0 (Apple Git-81)           |\r\n| Installation Source         | ~/.fastlane/bin/bundle/bin/fastlane         |\r\n| Host                        | Mac OS X 10.12.6 (16G29)                    |\r\n| Ruby Lib Dir                | ~/.fastlane/bin/bundle/lib                  |\r\n| OpenSSL Version             | OpenSSL 1.0.2g  1 Mar 2016                  |\r\n| Is contained                | false                                       |\r\n| Is homebrew                 | true                                        |\r\n| Is installed via Fabric.app | false                                       |\r\n| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |\r\n| Xcode Version               | 8.3.3                                       |\r\n### System Locale\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_US.UTF-8 | ✅ |\r\n| LC_ALL   | en_US.UTF-8 | ✅ |\r\n| LANGUAGE | en_US.UTF-8 | ✅ |\r\n\r\n### fastlane files:\r\n<details><summary>`./Fastfile`</summary>\r\n```ruby\r\n# Customise this file, documentation can be found here:\r\n# https://github.com/fastlane/fastlane/tree/master/fastlane/docs\r\n# All available actions: https://docs.fastlane.tools/actions\r\n# can also be listed using the `fastlane actions` command\r\n# Change the syntax highlighting to Ruby\r\n# All lines starting with a # are ignored when running `fastlane`\r\n# If you want to automatically update fastlane if a new version is available:\r\n# update_fastlane\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"2.36.0\"\r\ndefault_platform :android\r\nplatform :android do\r\n  before_all do\r\n    # ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/...\"\r\n  end\r\n  desc \"Runs all the tests\"\r\n  lane :test do\r\n    gradle(task: \"test\")\r\n  end\r\n  desc \"Submit a new Beta Build to Crashlytics Beta\"\r\n  lane :beta do\r\n    gradle(task: \"assembleRelease\")\r\n    # sh \"your_script.sh\"\r\n    # You can also use other beta testing services here\r\n  end\r\n  desc \"Deploy a new version to the Google Play\"\r\n  lane :deploy do\r\n    gradle(task: \"assembleRelease\")\r\n    supply\r\n  end\r\n  # You can define as many lanes as you want\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n    # slack(\r\n    #   message: \"Successfully deployed new App Update.\"\r\n    # )\r\n  end\r\n  error do |lane, exception|\r\n    # slack(\r\n    #   message: exception.message,\r\n    #   success: false\r\n    # )\r\n  end\r\nend\r\n# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md\r\n# All available actions: https://docs.fastlane.tools/actions\r\n# fastlane reports which actions are used. No personal data is recorded. \r\n# Learn more at https://github.com/fastlane/fastlane#metrics\r\n```\r\n</details>\r\n<details><summary>`./Appfile`</summary>\r\n```ruby\r\njson_key_file \"Google Play Android Developer-6c1e72bf21d4.json\" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one\r\npackage_name \"org.mycompany.mobile.arcadia\" # e.g. com.krausefx.app\r\n```\r\n</details>\r\n### fastlane gems\r\n| Gem      | Version | Update-Status  |\r\n| -------- | ------- | -------------- |\r\n| fastlane | 2.46.0  | 💥 Check failed |\r\n### Loaded fastlane plugins:\r\n**No plugins Loaded**\r\n<details><summary><b>Loaded gems</b></summary>\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| slack-notifier            | 1.5.1        |\r\n| CFPropertyList            | 2.3.5        |\r\n| claide                    | 1.0.1        |\r\n| colored2                  | 3.1.2        |\r\n| nanaimo                   | 0.2.3        |\r\n| xcodeproj                 | 1.4.4        |\r\n| rouge                     | 1.11.1       |\r\n| xcpretty                  | 0.2.6        |\r\n| terminal-notifier         | 1.7.1        |\r\n| unicode-display_width     | 1.1.3        |\r\n| terminal-table            | 1.7.3        |\r\n| plist                     | 3.2.0        |\r\n| public_suffix             | 2.0.5        |\r\n| addressable               | 2.5.1        |\r\n| multipart-post            | 2.0.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| tty-screen                | 0.5.0        |\r\n| babosa                    | 1.0.2        |\r\n| colored                   | 1.2          |\r\n| highline                  | 1.7.8        |\r\n| commander-fastlane        | 4.4.5        |\r\n| excon                     | 0.55.0       |\r\n| faraday                   | 0.12.1       |\r\n| unf_ext                   | 0.0.7.4      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20170404 |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| fastimage                 | 2.1.0        |\r\n| gh_inspector              | 1.0.3        |\r\n| uber                      | 0.0.15       |\r\n| declarative               | 0.0.9        |\r\n| declarative-option        | 0.1.0        |\r\n| representable             | 3.0.4        |\r\n| retriable                 | 2.1.0        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| little-plugger            | 1.1.4        |\r\n| multi_json                | 1.12.1       |\r\n| logging                   | 2.2.2        |\r\n| jwt                       | 1.5.6        |\r\n| memoist                   | 0.15.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.7.3        |\r\n| googleauth                | 0.5.1        |\r\n| httpclient                | 2.8.3        |\r\n| google-api-client         | 0.12.0       |\r\n| json                      | 1.8.1        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_xml                 | 0.6.0        |\r\n| rubyzip                   | 1.2.1        |\r\n| security                  | 0.1.3        |\r\n| xcpretty-travis-formatter | 0.0.4        |\r\n| dotenv                    | 2.2.0        |\r\n| bundler                   | 1.14.6       |\r\n| faraday_middleware        | 0.11.0.1     |\r\n</details>\r\n*generated on:* **2017-07-31**\r\n</details>\r\n\r\n"}}
{"actor":{"display_login":"fastlane-bot"}}