[MDEV-21730] Improve TLS/SSL error reporting Created: 2020-02-13 Updated: 2021-06-10 Resolved: 2021-05-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, SSL |
| Fix Version/s: | 10.4.19, 10.5.10, 10.6.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Valerii Kravchuk | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Now when Galera node can not join the cluster becuase of some problem with certificates we get just this kind of error messages:
It would be useful to get more detailed explanation about the problem. All elements of certificates must be checked and if one element fails (wrong CN, something else, in root or in one of intermediate certificates, etc), it must be reported what it is. This would help a lot in troubleshooting. As a side note, it would be useful to get node names and not their resolved IP-addresses in the messages. |
| Comments |
| Comment by Laurent Blume [ 2020-02-13 ] |
|
I'd emphasize the need to have exactly the name used in the configuration in the messages, and not anything resolved. This will matter in case the CN check fails because the configuration uses the wrong name. |
| Comment by Seppo Jaakola [ 2021-05-05 ] |
|
The TLS/SSL error messages have been worked on with the latest Galera 4.8 library, as part of other TLS - Galera interoperability refactoring. According to the actual author, Teemu: "The error messages are the ones which are returned by SSL library, but the format should now be more human friendly. |
| Comment by Seppo Jaakola [ 2021-05-05 ] |
|
Pristine SSL library error messages are now logged with better readable format. |
| Comment by Jan Lindström (Inactive) [ 2021-05-27 ] |
|
Galera library 26.4.8 improved TLS/SSL error printing. |