From 341c8b7657f6bdafd5739b98aaea9c0dc0f75ed8 Mon Sep 17 00:00:00 2001 From: John Birtley Date: Sat, 30 Mar 2024 13:29:15 +0000 Subject: [PATCH] Deal with .NET TLS caching causing "Received an unexpected EOF or 0 bytes from the transport stream" during the verify_peer of tthe TLS handshake (https://github.com/sysown/proxysql/issues/4419) --- src/proxy_tls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/proxy_tls.cpp b/src/proxy_tls.cpp index d43f25f8c1..a7136448b5 100644 --- a/src/proxy_tls.cpp +++ b/src/proxy_tls.cpp @@ -477,7 +477,8 @@ int ProxySQL_create_or_load_TLS(bool bootstrap, std::string& msg) { } } if (ret == 0) { - SSL_CTX_set_verify(GloVars.global.ssl_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE, callback_ssl_verify_peer); + // https://github.com/sysown/proxysql/issues/4419 + SSL_CTX_set_verify(GloVars.global.ssl_ctx, SSL_VERIFY_NONE, callback_ssl_verify_peer); } X509_free(x509); EVP_PKEY_free(pkey);