From: "cron2 (Code Review)" Date: Tue, 26 Dec 2023 19:41:17 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <2f3aa975592c2f167ff8906b20ea1f9faed9908a-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="vrzr/1z6T5A="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Extend the error message when TLS 1.0 PRF fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --vrzr/1z6T5A= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/45= 6?usp=3Demail ) Change subject: Extend the error message when TLS 1.0 PRF fails ...................................................................... Extend the error message when TLS 1.0 PRF fails This error will probably become more and more common in the future when more and more systems will drop TLS 1.0 PRF support. We are already seeing people stumbling upon this (see GitHub issue #460) The current error messages TLS Error: PRF calcuation failed TLS Error: generate_key_expansion failed are not very helpful for people that do not have deep understanding of TLS or the OpenVPN protocol. Improve this message to give a normal user a chance to understand that the peer needs to be OpenVPN 2.6.x or newer. Change-Id: Ib3b64b52beed69dc7740f191b0e9a9dc9af5b7f3 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20231213105308.121460-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 796.html Signed-off-by: Gert Doering --- M src/openvpn/ssl.c 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 6eddb68..7597412 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -1477,7 +1477,12 @@ { if (!generate_key_expansion_openvpn_prf(session, &key2)) { - msg(D_TLS_ERRORS, "TLS Error: PRF calcuation failed"); + msg(D_TLS_ERRORS, "TLS Error: PRF calculation failed. Your sys= tem " + "might not support the old TLS 1.0 PRF calculation anymore= or " + "the policy does not allow it (e.g. running in FIPS mode).= " + "The peer did not announce support for the modern TLS Expo= rt " + "feature that replaces the TLS 1.0 PRF (requires OpenVPN " + "2.6.x or higher)"); goto exit; } } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/456?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ib3b64b52beed69dc7740f191b0e9a9dc9af5b7f3 Gerrit-Change-Number: 456 Gerrit-PatchSet: 9 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --vrzr/1z6T5A= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

Extend the error message when TLS 1.0 PRF fail=
s

This error will probably become more and more common in the future= when
more and more systems will drop TLS 1.0 PRF support. We are alread= y
seeing people stumbling upon this (see GitHub issue #460)

The c= urrent error messages

TLS Error: PRF calcuation failed
TLS Er= ror: generate_key_expansion failed

are not very helpful for people t= hat do not have deep understanding
of TLS or the OpenVPN protocol. Impro= ve this message to give a normal
user a chance to understand that the pe= er needs to be OpenVPN 2.6.x or
newer.

Change-Id: Ib3b64b52beed69= dc7740f191b0e9a9dc9af5b7f3
Signed-off-by: Arne Schwabe <arne@...2639...= ..>
Acked-by: Frank Lichtenheld <frank@...2641...>
Message-I= d: <20231213105308.121460-1-frank@...2641...>
URL: https://www.mai= l-archive.com/openvpn-devel@lists.sourceforge.net/msg27796.html
Signed-o= ff-by: Gert Doering <gert@...1296...>
---
M src/openvpn/ssl.c1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index= 6eddb68..7597412 100644
--- a/src/openvpn/ssl.c
= +++ b/src/openvpn/ssl.c
@@ -1477,7 +1477,12 @@=
{
if (!generate_key_expansion_openv= pn_prf(session, &key2))
{
- msg(D_TLS_ERRORS, "TLS Er= ror: PRF calcuation failed");
+ msg(D_TLS_ERRORS, "TLS Error: PRF calculati= on failed. Your system "
+ "might not support the old TLS 1.0 PRF calcu= lation anymore or "
+ "the policy does not allow it (e.g. running in FI= PS mode). "
+ = "The peer did not announce support for the modern TLS Exp= ort "
+ = "feature that replaces the TLS 1.0 PRF (requires OpenVPN "=
+ &qu= ot;2.6.x or higher)");
goto exit;<= br> }
}

To view, visit change 456. To unsubscribe, or for help writing mail filters,= visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3b64b52beed69dc7740f191b0e= 9a9dc9af5b7f3
Gerrit-Change-Number: 456
Gerrit-PatchSet: 9
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--vrzr/1z6T5A=--