From: Laszlo Ersek <lersek@redhat.com>
To: Jiaxin Wu <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: internal structure of EFI_TLS_CA_CERTIFICATE_VARIABLE
Date: Tue, 20 Mar 2018 15:55:59 +0100 [thread overview]
Message-ID: <32764418-f00f-2423-216d-24b3f842a3c7@redhat.com> (raw)
Hi Jiaxin, Siyuan,
setting *multiple* CA certificates for HTTPS server verification looks
possible, from the following call tree:
TlsConfigCertificate() [NetworkPkg/HttpDxe/HttpsSupport.c]
TlsConfigurationSetData() [NetworkPkg/TlsDxe/TlsConfigProtocol.c]
TlsSetCaCertificate() [CryptoPkg/Library/TlsLib/TlsConfig.c]
X509_STORE_add_cert()
because the outermost TlsConfigCertificate() function implements a loop
over the EFI_TLS_CA_CERTIFICATE_VARIABLE contents.
Is there natural-language documentation available about the internal
structure of EFI_TLS_CA_CERTIFICATE_VARIABLE?
Because, OVMF should avoid taking one format of CA Cert list from QEMU
(i.e. from the virtualization host) and converting it to the format
expected by TlsConfigCertificate(). Instead, the "update-ca-trust"
command should be taught (on the host system) to generate a binary
certificate list file (somewhere under "/etc/pki/ca-trust/extracted", I
believe) such that the file can be used directly for setting
EFI_TLS_CA_CERTIFICATE_VARIABLE in the guest.
In order to write such an extractor for "update-ca-trust", the format of
EFI_TLS_CA_CERTIFICATE_VARIABLE should be publicly documented. Also, a
promise of stability wouldn't hurt. :)
(To refer back to the cipher suite list discussion
<https://lists.01.org/pipermail/edk2-devel/2018-February/020944.html>,
this stability / public documentation goal was guaranteed there, due to
EFI_TLS_CIPHER being specified publicly.)
Thanks!
Laszlo
next reply other threads:[~2018-03-20 14:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 14:55 Laszlo Ersek [this message]
2018-03-21 1:30 ` internal structure of EFI_TLS_CA_CERTIFICATE_VARIABLE Fu, Siyuan
2018-03-21 13:39 ` Laszlo Ersek
2018-03-22 2:02 ` Wu, Jiaxin
2018-03-22 9:20 ` Laszlo Ersek
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=32764418-f00f-2423-216d-24b3f842a3c7@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