public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: "Wu, Jiaxin" <jiaxin.wu@intel.com>,
	"Fu, Siyuan" <siyuan.fu@intel.com>,
	"Ye, Ting" <ting.ye@intel.com>, "Long, Qin" <qin.long@intel.com>,
	"Hsiung, Harry L" <harry.l.hsiung@intel.com>
Cc: edk2-devel-01 <edk2-devel@lists.01.org>
Subject: Re: setting the TLS cipher list for HTTPS booting
Date: Tue, 23 Jan 2018 16:01:39 +0100	[thread overview]
Message-ID: <93bf358e-7e57-a0f0-b8ba-239e72036c27@redhat.com> (raw)
In-Reply-To: <366c3083-0eb1-ecb4-2050-654c09135f8a@redhat.com>

Hi Jiaxin,

two updates:

>>>> Jiaxin: I agree with the dynamic PCD solution for the CipherList
>>>> setting, the PCD format can use as following one:
>>>> 	gEfiNetworkPkgTokenSpaceGuid.PcdHttpsTlsCipherLists
>>> |{0x0}|VOID*|0x0000000D
>>>> If the platform wants to set the below CipherSuites (RFC 5246
>>>> defined):
>>>> 	CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA = { 0x00,0x35 };
>>>> 	CipherSuite TLS_RSA_WITH_AES_256_CBC_SHA256 = { 0x00,0x3D };
>>>> The PCD can be configured by the corresponding platform as below,
>>>> otherwise it will use the OpenSSL default one:
>>>> 	gEfiNetworkPkgTokenSpaceGuid.PcdHttpsTlsCipherLists |{0x00,0x35,
>>> 0x00,0x3D }|VOID*|4
>>>> what do you think?

> Functionally, I agree that OVMF can make the feature work, without any
> changes to the HttpDxe driver, *but* only for the following two
> configuration items:
> 
> - CA certificate, through the (already existing) non-volatile UEFI
>   variable
> 
> - cipher suites (through the new dynamic PCD called
>   "PcdHttpsTlsCipherLists")
> 
> What about the rest of the configuration items? Should we introduce
> dynamic PCDs for those as well, individually?
> 
> I cannot tell what other config items should be exposed right from the
> start. That's why I'm suggesting HTTPS_CONFIG_PROTOCOL -- it looks
> flexible and reasonably future-proof.
> 
> BTW, I'm not asking that you write any code for this; I plan to submit
> the patches myself (for HttpDxe as well). We just have to figure out the
> direction first.
> 
> 
> If you really think that HttpDxe should only care about these two items
> (CA cert and cipher list), then I have another question: do you think it
> makes sense to introduce another non-volatile UEFI variable, for the
> cipher suites too? This would make things uniform, and perhaps
> TlsAuthConfigDxe could expose the cipher suites too, as a list of
> checkboxes. Just an idea.

So, apparently we indeed care about these two options mostly, i.e., the
CA certs, and the cipher suites.

However, I was informed that OVMF should simply forward the *textual*
cipher list representation, with preferably no processing at all before
the string reaches the OpenSSL code. In other words, OVMF should set the
PCD -- or, even better, variable -- to a *character string* like this:

"kEECDH:kRSA:kEDH:kPSK:kDHEPSK:kECDHEPSK:!EXP:!DES:!RC4:!RC2:!IDEA:!SEED:!eNULL:!aNULL:!MD5:!SSLv2"

Is this feasible?

Thanks,
Laszlo


  reply	other threads:[~2018-01-23 14:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 14:33 setting the TLS cipher list for HTTPS booting Laszlo Ersek
2018-01-20  6:18 ` Wu, Jiaxin
2018-01-22  9:37   ` Laszlo Ersek
2018-01-23  2:43     ` Wu, Jiaxin
2018-01-23 14:01       ` Laszlo Ersek
2018-01-23 15:01         ` Laszlo Ersek [this message]
2018-01-24  2:10           ` Wu, Jiaxin
2018-01-24  3:40             ` Wu, Jiaxin
2018-01-24  6:50               ` Wu, Jiaxin
2018-01-24 16:13                 ` Laszlo Ersek
2018-01-25  4:52                   ` Wu, Jiaxin
2018-01-25 12:41                     ` Laszlo Ersek
2018-02-05  3:33                       ` Wu, Jiaxin
2018-02-05 10:46                         ` Laszlo Ersek
2018-02-06  2:34                           ` Wu, Jiaxin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93bf358e-7e57-a0f0-b8ba-239e72036c27@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox