From: Michael Richardson <mcr@sandelman.ca>
To: Ed Tanous <ed@tanous.net>, openbmc <openbmc@lists.ozlabs.org>
Subject: Re: BMCWeb policy for HTTPS site identity certificate
Date: Tue, 28 Jul 2020 13:03:14 -0400 [thread overview]
Message-ID: <17750.1595955794@localhost> (raw)
In-Reply-To: <CACWQX81hRk+syCoDmhnQRLEZx-usQRbos___vTDOCCBFF7LqVQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2838 bytes --]
Ed Tanous <ed@tanous.net> wrote:
>> "certificate is missing" is pretty much unambiguous.
> Unfortunately, this ambiguity comes with the territory. On first
> boot, bmcweb has no certificate, and doesn't know the difference
> between "missing" and "was never there". Regardless, to bring up TLS
> it needs _some_ certificate, so the original behavior was that it
This is reasonable behaviour, but given that browsers are trying very hard to
make the certificate exception box go away, this does not really help
long-term in my opinion.
Missing means: "ENOFILE", not "Can we use this certificate file for starting
up an SSL Connect".
>> "bad format" depends a bit upon evolution of libraries.
> Today this is defined as the above. "Can we use this certificate file
> for starting up an SSL context?" If the answer is no, we regenerate.
> In theory, the only library we rely on for this is OpenSSL, which I
> would hope doesn't have a backward incompatible evolution in this
> area.
Yes, it does.
For instance, you can't load 1024-bit RSA keys with 1.1.1.
It refuses to start.
Meanwhile, 1.0.x does not have any ECDSA support, and you won't find this out
until the TLS session actually tries to start, at which point, it logs an
obsure message to stderr, and returns an error that most programs don't know
what to do with.
(And the TCP connection just ends)
>> In particular, a new version of libssl might support some new algorithm, and
>> then should the firmware be rolled back, it will "bad format".
> In this hypothetical, you're thinking about a new, non x509
> certificate file format? I vote let's cross that bridge when we get
Nope, not about non-X.509.
Algorithms and keysize changes.
> there, as it seems like there's a lot more discussion that would need
> to happen around upgrades and downgrades. Today the assumption we
> make is that x509 certificate reading is backward and forward
> compatible since the begining of openbmc, which, to my knowledge, it
> is.
Until... it isn't.
But, the proposal would have considered a certificate with an invalid date as
being invalid, and generated a new one.
>> So I suggest that the certificate+keypair is never deleted, but may be renamed.
>> I think that we could have a debate about getting telemetry about bad
>> certificates back via HTTP.
> We can have a discussion, but I suspect a lot of people would be very
> against using unencrypted HTTP for this purpose.
I agree.
So, how do you get information at this point?
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | IoT architect [
] mcr@sandelman.ca http://www.sandelman.ca/ | ruby on rails [
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-07-28 17:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-23 15:25 BMCWeb policy for HTTPS site identity certificate Joseph Reynolds
2020-07-26 20:35 ` Michael Richardson
2020-07-27 15:15 ` Bruce Mitchell
2020-07-27 15:36 ` Ed Tanous
2020-07-28 17:03 ` Michael Richardson [this message]
2020-07-29 2:31 ` Ed Tanous
2020-07-27 17:32 ` Patrick Williams
2020-07-28 17:04 ` Michael Richardson
2020-07-29 2:28 ` Ed Tanous
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-all 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=17750.1595955794@localhost \
--to=mcr@sandelman.ca \
--cc=ed@tanous.net \
--cc=openbmc@lists.ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.