Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #273243
| From | Jeffrey Walton <noloader@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: SSL/TLS debugging on MariaDB |
| Date | 2024-09-24 02:50 +0200 |
| Message-ID | <Jq1UB-eogd-1@gated-at.bofh.it> (permalink) |
| References | <JpXxD-elOI-3@gated-at.bofh.it> <JpXxD-elOI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 23, 2024 at 7:13 PM Andrew Wood <andrewjameswood@ymail.com> wrote:
>
> Is there a way to get MariaDB on Bookworm to log verbosely everything
> to do with connection attempts in order to try and debug why a client
> keeps getting error 2026 SSL connection error: protocol version mismatch?
I typically use OpenSSL's s_client to connect to the server. It is an
excellent debugging tool for times like this. Something like:
openssl s_client -connect db.example.com:443 -servername db.example.com
You can also use -tls1_2 and -tls1_3 if you want to nail down a
particular version of the protocol. See
<https://docs.openssl.org/3.0/man1/openssl-s_client/> for more
options.
I suspect (and it is just a guess) that the mismatch is due to a plain
text error page being returned to the TLS client rather than a TLS
protocol message with a well formed version. That usually means a TLS
server is _not_ listening on the port you are connecting to. Rather,
just a regular server is listening (without TLS).
> There is currently nothing being logged on the server other than:
>
> [Warning] Aborted connection 332 to db: 'unconnected' user:
> 'unauthenticated' host: '192.168.253.231' (This connection closed
> normally without authentication)
>
> SHOW GLOBAL VARIABLES LIKE 'tls_version'; gives TLSv1.1,TLSv1.2,TLSv1.3
> and the client is based on a relatively recent version of libmysqlclient
> so Im struggling to understand what is going wrong without some more
> detailed logging. I cant find anything in the MariaDB manual.
Jeff
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
SSL/TLS debugging on MariaDB Andrew Wood <andrewjameswood@ymail.com> - 2024-09-23 22:10 +0200
Re: SSL/TLS debugging on MariaDB - tos minclock 4 minsane 1 George at Clug <Clug@goproject.info> - 2024-09-24 00:30 +0200
Re: SSL/TLS debugging on MariaDB - tos minclock 4 minsane 1 Andy Smith <andy@strugglers.net> - 2024-09-24 00:50 +0200
Re: SSL/TLS debugging on MariaDB - tos minclock 4 minsane 1 George at Clug <Clug@goproject.info> - 2024-09-24 01:50 +0200
Re: SSL/TLS debugging on MariaDB Jeffrey Walton <noloader@gmail.com> - 2024-09-24 02:50 +0200
csiph-web