Skip to content

Add a new command line arg to enforce tls1.2 - #7987

Merged
akallabeth merged 5 commits into
FreeRDP:masterfrom
sivagudivadaz:add-new-cmdline-args-for-tls-enforcement
Jun 23, 2022
Merged

akallabeth merged 5 commits into
FreeRDP:masterfrom
sivagudivadaz:add-new-cmdline-args-for-tls-enforcement

Conversation

@sivagudivadaz

@sivagudivadaz sivagudivadaz commented Jun 23, 2022 •

Copy link
Copy Markdown
Contributor

I'm facing a TLS_CONNECT_ERROR issue where a customer has both TLS1.3 and TLS1.2 enabled on their windows 2019 server - which I believe has experimental support for TLS1.3. And because the server doesn't have full TLS1.3 support, calling TLS_client_method in tls.c - which negotiates the highest available TLS version, fails to establish a proper connection as the server sends back a RST after ClientHello.

Note that this is not an issue with Windows 2022 server - which has full support for TLS1.3. With both TLS1.2 and TLS1.3 enabled on a win 2022 server, FreeRDP can connect just fine to the target VM.

This PR adds a new command line argument to enforce TLS1.2 that is set through our application that consumes FreeRDP.

Please advice if there is a less intrusive way to enforce TLS1.2 during the initial TLS handshake.

@freerdp-bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

@sivagudivadaz
sivagudivadaz marked this pull request as ready for review June 23, 2022 00:27
@sivagudivadaz sivagudivadaz changed the title add a new flag to enforce tls1.2 Add a new command line arg to enforce tls1.2 Jun 23, 2022
@hardening

Copy link
Copy Markdown
Contributor

For the changes in settings.h, just change the rdp_settings struct and then run the update-rdpSettings and update-settings-tests scripts in tools, it will re-generate setters/getters and the ids.

Comment thread libfreerdp/crypto/tls.c Resolved

@akallabeth akallabeth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM,
except running

./tools/update-rdpSettings
./tools/update-rdpSettings
git clang-format -f
git commit . -m"updated rdpSettings for tls1.2"

(and maybe use the freerdp_settings_get_bool and freerdp_settings_set_bool instead of direct access to the rdpSettings variable

@akallabeth akallabeth added this to the next milestone Jun 23, 2022
@akallabeth

Copy link
Copy Markdown
Member

@sivagudivadaz ok, I´ve done the changes required, I´m force pushing to your branch, just you know ;)

@sivagudivadaz

Copy link
Copy Markdown
Contributor Author

@sivagudivadaz ok, I´ve done the changes required, I´m force pushing to your branch, just you know ;)

Oh ok 👍, I was just about to make those changes and push too, but if you are ready already go ahead.

Sorry about missing the clang formatting though, will keep that in mind next time.

@akallabeth

Copy link
Copy Markdown
Member

@freerdp-bot test

@freerdp-bot

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/7668/

@akallabeth
akallabeth merged commit ce2e3ab into FreeRDP:master Jun 23, 2022
@sivagudivadaz
sivagudivadaz deleted the add-new-cmdline-args-for-tls-enforcement branch June 23, 2022 07:28
@akallabeth

Copy link
Copy Markdown
Member

@sivagudivadaz thank you for investigating (and fixing) this.

@awakecoding

Copy link
Copy Markdown
Member

@thenextman maybe this is the same issue we've been facing with a few customers?

@akallabeth akallabeth linked an issue Jul 7, 2022 that may be closed by this pull request
sivagudivadaz added a commit to sivagudivadaz/FreeRDP that referenced this pull request Jul 27, 2022
sivagudivadaz added a commit to sivagudivadaz/FreeRDP that referenced this pull request Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FreeRDP & Microsoft RDS using TLS 1.2 and above

5 participants