回覆: [edk2-devel] Propose on enabling TLSv1.3

Huang, Matthew (HPS SW) chao-jui.huang at hpe.com
Wed Aug 19 23:16:02 UTC 2020


Hi Zhiguang:

Any comments on these patches?

Matthew.

寄件者: devel at edk2.groups.io <devel at edk2.groups.io> 代理 Huang, Matthew (HPS SW)
寄件日期: Wednesday, August 12, 2020 7:13 PM
收件者: devel at edk2.groups.io; Huang, Matthew (HPS SW) <chao-jui.huang at hpe.com>; zhiguang.liu at intel.com
副本: Wei, Kent (HPS SW) <kent.wei at hpe.com>; Lin, Derek (HPS SW) <derek.lin2 at hpe.com>; Wang, Nickle (HPS SW) <nickle.wang at hpe.com>; Wang, Sunny (HPS SW) <sunnywang at hpe.com>
主旨: 回覆: [edk2-devel] Propose on enabling TLSv1.3

Hi Zhiguang:

Please refer to the attached ‘tlsv13.patch’ based on tianocore/edk2 at be01087e07.

As I mentioned, ‘process_files.pl’ is processed with ActivePerl 5.28 Build 0000 (64-bit) and MSYS2 MinGW 64-bit, log is attached as ‘process_openssl.txt’.

The problems are still the same, current OpenSSL has two problems:


  1.  It will not ignore disabled TLSv1.3 cipher suites, which results in all the TLSv1.3 cipher suites defined in TlsCipherMappingTable will be published no matter what the actual value is in gEdkiiHttpTlsCipherListGuid.HttpTlsCipherList.
  2.  SSL_set_ciphersuites cannot handle non-TLSv1.3 ciphers, which results in the function fails to set any ciphersuite if there are TLSv1.2 ciphers in the ‘CipherString’ argument.

They are minor ones, but would’ve caused the whole flow acts weird. Those two problems are more or less solved or discussed in the OpenSSL scene, but not included in EDK2 yet. If anyone wants to test TLSv1.3, attachment ‘openssl.patch’ is suggested to be applied for a more reasonable outcome.

Regards,
Matthew.
寄件者: devel at edk2.groups.io<mailto:devel at edk2.groups.io> <devel at edk2.groups.io<mailto:devel at edk2.groups.io>> 代理 Huang, Matthew (HPS SW)
寄件日期: Monday, August 10, 2020 12:26 PM
收件者: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; zhiguang.liu at intel.com<mailto:zhiguang.liu at intel.com>
副本: Wei, Kent (HPS SW) <kent.wei at hpe.com<mailto:kent.wei at hpe.com>>; Lin, Derek (HPS SW) <derek.lin2 at hpe.com<mailto:derek.lin2 at hpe.com>>; Wang, Nickle (HPS SW) <nickle.wang at hpe.com<mailto:nickle.wang at hpe.com>>; Wang, Sunny (HPS SW) <sunnywang at hpe.com<mailto:sunnywang at hpe.com>>
主旨: Re: [edk2-devel] Propose on enabling TLSv1.3

Hi Zhiguang:

Sure, I love to. But I’m new to the scene, please give me some time to figure out how to share the snippet properly, thanks.

Regards,
Matthew.
From: devel at edk2.groups.io<mailto:devel at edk2.groups.io> <devel at edk2.groups.io<mailto:devel at edk2.groups.io>> On Behalf Of Zhiguang Liu
Sent: Monday, August 10, 2020 11:00 AM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; Huang, Matthew (HPS SW) <chao-jui.huang at hpe.com<mailto:chao-jui.huang at hpe.com>>
Cc: Wei, Kent (HPS SW) <kent.wei at hpe.com<mailto:kent.wei at hpe.com>>; Lin, Derek (HPS SW) <derek.lin2 at hpe.com<mailto:derek.lin2 at hpe.com>>; Wang, Nickle (HPS SW) <nickle.wang at hpe.com<mailto:nickle.wang at hpe.com>>; Wang, Sunny (HPS SW) <sunnywang at hpe.com<mailto:sunnywang at hpe.com>>
Subject: Re: [edk2-devel] Propose on enabling TLSv1.3

Hi Matthew,
Can you share the code about implementing tls 1.3 to the community?
We can discuss the problems according to the code.
Thanks
Zhiguang

From: devel at edk2.groups.io<mailto:devel at edk2.groups.io> <devel at edk2.groups.io<mailto:devel at edk2.groups.io>> On Behalf Of Huang, Matthew (HPS SW)
Sent: Monday, August 3, 2020 1:55 PM
To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>
Cc: Wei, Kent (HPS SW) <kent.wei at hpe.com<mailto:kent.wei at hpe.com>>; Lin, Derek (HPS SW) <derek.lin2 at hpe.com<mailto:derek.lin2 at hpe.com>>; Wang, Nickle (HPS SW) <nickle.wang at hpe.com<mailto:nickle.wang at hpe.com>>; Wang, Sunny (HPS SW) <sunnywang at hpe.com<mailto:sunnywang at hpe.com>>
Subject: [edk2-devel] Propose on enabling TLSv1.3

Hi:

It’s Matthew from HPE UEFI team. There is no TLSv1.3 support under current EDK2 releases, and I’m working on enabling TLSv1.3 under UEFI and the result looks promising. OpenSSL have already made RFC8446 happens in late 2018, the submodule we’re having on the master branch is more than enough to make the whole thing work.

There are several problems needed to be addressed:'

1. OpenSslLib needs a reconfiguration with “no-ec” option on in process_files.pl, and no off the shelf Perl built with native Windows command prompt could’ve processed the file correctly. But I’ve managed to remove the blockage using Perl MSYS2 build under Windows without any error. Since this is only a one-timer, I don’t think that would’ve caused too much of a trouble. The produced opensslconf.h seems correct, and this is all we need.

2. There are some policies issues caused by OpenSSL, OpenSSL explicitly describes that SSL_set_cipher_list is for TLS version 1.2 and lower, SSL_set_ciphersuites is for TLSv1.3, but these function are tangled to each other and the behavior is not equally fair. In current revision EDK2 included in the OpenSSL submodule, SSL_set_cipher_list can parse v1.3 cipher suites but will not apply them, meanwhile SSL_set_ciphersuites cannot support any cipher lower than v1.3. This will cause a problem that when user applies auto versioning, TLSv1.3 will not be applied even if v1.3 is enabled except setting an empty list using SSL_set_cipher_list.

3. Apart from point 2., SSL_set_ciphersuites in current revision EDK2 included in the OpenSSL submodule, cannot exclude ciphersuites that user disabled, so every cipher suites will be in the list for server to

But I browsed all OpenSSL github PRs or merge-pending patches, both point 2 and 3 have somewhat one or more solutions going on, I’ve applied them for testing and the result is fairly satisfying.

If there’s a chance we discuss this in code? It will be easier this way, I have a working patch we can start with, thanks.

Regards,
Matthew


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#64475): https://edk2.groups.io/g/devel/message/64475
Mute This Topic: https://groups.io/mt/76298011/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20200819/6750b9d4/attachment.htm>


More information about the edk2-devel-archive mailing list