Details

    Description

      Now when Galera node can not join the cluster becuase of some problem with certificates we get just this kind of error messages:

      2020-02-10 15:01:01 0 [Note] WSREP: gcomm: connecting to group 'my_wsrep_cluster', peer 'node1:4567,node2:4567,node3:4567'
      2020-02-10 15:01:01 0 [ERROR] WSREP: handshake with remote endpoint ssl://a.b.c.d:4567 failed: asio.ssl:336134278: 'certificate verify failed' ( 336134278: 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed')
      ...
      

      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.

      Attachments

        Issue Links

          Activity

            valerii Valerii Kravchuk created issue -
            laurentb-v Laurent Blume added a comment -

            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.
            It's also very unclear what checks there are now on the client-side. Since the same configuration parameters are used both for server- and client-authentication, the logs must specify which part failed (was it the client failing to authenticate the server, or the server failing to authenticate the client?).

            laurentb-v Laurent Blume added a comment - 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. It's also very unclear what checks there are now on the client-side. Since the same configuration parameters are used both for server- and client-authentication, the logs must specify which part failed (was it the client failing to authenticate the server, or the server failing to authenticate the client?).
            ralf.gebhardt Ralf Gebhardt made changes -
            Field Original Value New Value
            Assignee Seppo Jaakola [ seppo ]
            ralf.gebhardt Ralf Gebhardt made changes -
            ralf.gebhardt Ralf Gebhardt made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            seppo Seppo Jaakola made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            seppo Seppo Jaakola added a comment -

            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.
            And they contain additional information in case of certificate verification failure."

            seppo Seppo Jaakola added a comment - 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. And they contain additional information in case of certificate verification failure."
            seppo Seppo Jaakola made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            seppo Seppo Jaakola added a comment -

            Pristine SSL library error messages are now logged with better readable format.
            Additionally, certification related errors are logged as separately as well.

            seppo Seppo Jaakola added a comment - Pristine SSL library error messages are now logged with better readable format. Additionally, certification related errors are logged as separately as well.
            seppo Seppo Jaakola made changes -
            Status Stalled [ 10000 ] In Review [ 10002 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Fix Version/s 10.3 [ 22126 ]

            Galera library 26.4.8 improved TLS/SSL error printing.

            jplindst Jan Lindström (Inactive) added a comment - Galera library 26.4.8 improved TLS/SSL error printing.
            jplindst Jan Lindström (Inactive) made changes -
            issue.field.resolutiondate 2021-05-27 08:11:56.0 2021-05-27 08:11:56.718
            jplindst Jan Lindström (Inactive) made changes -
            Fix Version/s 10.6.0 [ 24431 ]
            Fix Version/s 10.5.10 [ 25204 ]
            Fix Version/s 10.4.19 [ 25205 ]
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Assignee Seppo Jaakola [ seppo ] Jan Lindström [ jplindst ]
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 103944 ] MariaDB v4 [ 134184 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 201571 193314 135838
            Zendesk active tickets 201571

            People

              jplindst Jan Lindström (Inactive)
              valerii Valerii Kravchuk
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.