[CDRIVER-841] Improve SSL connection error messages Created: 15/Sep/15 Updated: 10/Aug/16 Resolved: 18/Jul/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, tls |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Derick Rethans | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | intern2016 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Epic Link: | TLS Improvements | ||||||||||||||||||||||||||||||||
| Description |
|
Take for example the following mongo invocation (with .pem files taken out of phongo's test suite, talking to the phongo vm created servers).
This produces:
Using the C driver directly:
Currently, just like with any other connection failure, the driver just returns "error: No suitable servers found". It does not tell me there was an error with SSL connection in general, and certainly not that it was because of a wrong name. Please add more specific error messages for SSL connections, including, but not limited to:
(it would also be helpful, if these same things showed up in the normal log that the server produces) |
| Comments |
| Comment by Githook User [ 18/Jul/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Hannes Magnusson [ 18/Jul/16 ] |
|
We don't know if you are connecting to a server expecting plaintext/TLS, so can't upgrade the error message to say so. You can see that in the server logs, but the server just terminate the connection. As of 1.4, these error messages should have been improved. |