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>
Cc: edk2-devel-01 <edk2-devel@lists.01.org>,
	"Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: internal structure of EFI_TLS_CA_CERTIFICATE_VARIABLE
Date: Thu, 22 Mar 2018 10:20:22 +0100	[thread overview]
Message-ID: <b7385fa1-37af-0f76-1abb-31729cee35aa@redhat.com> (raw)
In-Reply-To: <895558F6EA4E3B41AC93A00D163B72741639CF62@SHSMSX103.ccr.corp.intel.com>

On 03/22/18 03:02, Wu, Jiaxin wrote:
> On 03/21/18 14:39, Laszlo Ersek wrote:
>> (1) Do you agree EFI_CERT_X509_GUID is the right setting for
>> "EFI_SIGNATURE_LIST.SignatureType" (even though the edk2 code
>> currently ignores it)?
>>
>> This would also imply that we set
>> "EFI_SIGNATURE_LIST.SignatureHeaderSize" to zero, according to the
>> UEFI spec.
>>
> 
> Yes, exactly, EFI_CERT_X509_GUID is the correct SignatureType for the
> CACertificate. SignatureHeaderSize should be set to zero. We do miss
> the check in HttpDxe driver, I'm fine to add back the  SignatureType
> check in TlsConfigCertificate(). So, can you report the Bugzilla for
> this fixing? Thanks.

I've filed <https://bugzilla.tianocore.org/show_bug.cgi?id=909> and
assigned it to myself (for a v1 patch at least).

>> (2) Do you foresee any such restrictions for the
>> "EFI_SIGNATURE_DATA.SignatureOwner" field in
>> EFI_TLS_CA_CERTIFICATE_VARIABLE? Or is it safe if we generate a GUID
>> for the tool with "uuidgen"?
>>
> 
> I don't think it's necessary to restrict/stand the GUID in the field
> of SignatureOwner for the CA certification (at least for now) since
> it's only used to identify the different venders (i.e, Microsoft) so
> as to avoid the following content check. In the UEFI part, we also
> didn't check the SignatureOwner for the any security consideration.
> So, I think it's safe to generate a GUID using the tool at present.

Sounds great, thanks!

Laszlo


  reply	other threads:[~2018-03-22  9:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 14:55 internal structure of EFI_TLS_CA_CERTIFICATE_VARIABLE Laszlo Ersek
2018-03-21  1:30 ` Fu, Siyuan
2018-03-21 13:39   ` Laszlo Ersek
2018-03-22  2:02     ` Wu, Jiaxin
2018-03-22  9:20       ` Laszlo Ersek [this message]
2018-03-28  2:31   ` Laszlo Ersek
2018-03-28  3:28     ` Zeng, Star
2018-03-28 10:06       ` Laszlo Ersek
2018-03-28 11:10         ` Zeng, Star
2018-03-28 12:01           ` Laszlo Ersek

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=b7385fa1-37af-0f76-1abb-31729cee35aa@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