opscode/chef — pull request #2611 by danielsdeleo (2014-12-10 20:58:12+00:00)
Title: Catch 'unknown protocol' errors in ssl fetch and explain them

The error message from OpenSSL when connecting to a non-ssl service is
confusing--it looks like a certificate validation failure. Catch the
error and explain what caused it.

New error message looks like this:

```
ERROR: The service at the given URI (http://foo.example.com) does not accept SSL connections
ERROR: Perhaps you meant to connect to 'https://foo.example.com'?
```

@opscode/client-core