Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Error Messages for SSL Errors in Knife #2630

Merged
merged 2 commits into from
Dec 15, 2014

Conversation

danielsdeleo
Copy link
Contributor

Adds a case for SSL errors to knife's error handling, which points users to the knife ssl check and knife ssl fetch commands.

@opscode/client-core @opscode/client-engineers

@danielsdeleo
Copy link
Contributor Author

As Jay pointed out in another PR, the end-to-end tests are failing b/c of a change in a cookbook that's not locked down.

@danielsdeleo
Copy link
Contributor Author

Jay explains the failing e2e tests here: #2629 (comment)

@tyler-ball
Copy link
Contributor

👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍

@btm
Copy link
Contributor

btm commented Dec 15, 2014

👍

@jaym
Copy link
Contributor

jaym commented Dec 15, 2014

:shipit:

Knife now gives an error message like this when an SSL error occurs:

```
ERROR: Could not establish a secure connection to the server.
Use `knife ssl check` to troubleshoot your SSL configuration.
If your Chef Server uses a self-signed certificate, you can use
`knife ssl fetch` to make knife trust the server's certificates.

Original Exception: OpenSSL::SSL::SSLError: SSL_connect returned=1
errno=0 state=SSLv3 read server certificate B: certificate verify failed
```
@danielsdeleo danielsdeleo merged commit 49689f6 into master Dec 15, 2014
@danielsdeleo danielsdeleo deleted the knife-ssl-error-messaging branch December 15, 2014 18:47
danielsdeleo added a commit that referenced this pull request Dec 15, 2014
danielsdeleo added a commit that referenced this pull request Dec 15, 2014
Conflicts:
	CHANGELOG.md
jaym added a commit that referenced this pull request Feb 19, 2015
* origin/12-stable: (83 commits)
  Disable win32 memory leak tests
  Stub windows? check in the unit test to make sure specs are green on windows.
  Fix build version for appveyor to be specific to the 12-stable branch
  More info more version
  Adding appveyor.yml
  Merge pull request #2749 from opscode/jdm/metadata-error-info
  Clearing out DOC_CHANGES from 12-stable because all docs have been updated since 12.0.3 release
  Contribution info for #2658.
  Bump version for 12.0.3 release.
  Merge pull request #2594 from jaymzh/digester
  Bump version number for 12.0.2 release.
  add CHANGELOG.md
  fix apt default_release attribute broken in 12.0
  Merge pull request #2650 from opscode/sersut/contrib-json
  Merge pull request #2642 from opscode/btm/site_install_json
  Changelog for #2621
  Merge pull request #2645 from opscode/sersut/contrib-2634
  Merge pull request #2634 from BackSlasher/repair-subversion-command
  Fixing homebrew package to use provider resolver per code review
  Update CHANGELOG for #2630
  ...

Conflicts:
	.travis.yml
	CHANGELOG.md
	DOC_CHANGES.md
	appveyor.yml
	lib/chef/application.rb
	lib/chef/dsl/recipe.rb
	lib/chef/knife/bootstrap.rb
	lib/chef/knife/core/bootstrap_context.rb
	lib/chef/node/attribute.rb
	lib/chef/node/attribute_collections.rb
	lib/chef/node/immutable_collections.rb
	lib/chef/resource.rb
	lib/chef/run_context.rb
	lib/chef/version.rb
	spec/functional/dsl/reboot_pending_spec.rb
	spec/functional/event_loggers/windows_eventlog_spec.rb
	spec/functional/resource/link_spec.rb
	spec/support/platform_helpers.rb
	spec/unit/knife_spec.rb
	spec/unit/mixin/deep_merge_spec.rb
	spec/unit/mixin/shell_out_spec.rb
	spec/unit/node/attribute_spec.rb
	spec/unit/node_spec.rb
	spec/unit/provider/package/apt_spec.rb
	spec/unit/provider/service/systemd_service_spec.rb
	spec/unit/provider_resolver_spec.rb
	spec/unit/recipe_spec.rb
	spec/unit/resource/resource_notification_spec.rb
	spec/unit/run_context_spec.rb
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants