avoid creating CERTCertificates in SSLServerCertVerification
Categories
(Core :: Security: PSM, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: keeler, Assigned: keeler)
References
(Blocks 1 open bug)
Details
(Whiteboard: [psm-assigned])
Attachments
(5 files)
There are some unnecessarily-created CERTCertificates in SSLServerCertVerification (and in particular, some are off the socket thread).
Assignee | ||
Comment 1•3 years ago
|
||
SSL_SERVER_AUTH_EKU has served its purpose. It has demonstrated that in the web
PKI (as defined by TLS web server certificates that chain up to root
certificates in Mozilla's CA program), all server certificates will have the
EKU extension, and the extension will be valid for TLS server authentication.
We no longer need to gather this data, so this patch removes this probe.
Assignee | ||
Comment 2•3 years ago
|
||
After successfully verifying a TLS server certificate, Firefox collects some
telemetry based on the built certificate chain's root certificate. Before this
patch, the implementation would unnecessarily create CERTCertificates out of
the built cert chain (unnecessary because the telemetry only relies on the
bytes of the root certificate). This patch avoids the unnecessary work.
Depends on D136676
Assignee | ||
Comment 3•3 years ago
|
||
Firefox uses mozilla::pkix to implement certificate verification. Before this
patch, though, DetermineCertOverrideErrors still used NSS to determine if a
certificate had any time-related errors (in addition to the primary error
returned by verification). This wasn't great from a consistency and
attack-surface point of view, so this patch updates that function to use
mozilla::pkix as well.
Depends on D136677
Assignee | ||
Comment 4•3 years ago
|
||
This patch updates some uses of RefPtr<nsNSSCertificate> to
nsCOMPtr<nsIX509Cert> because it's not necessary to use the concrete class.
This patch also removes some empty files that should have been removed in a
previous bug.
Depends on D136678
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D136679
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 7•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0a3e7c40e53d
https://hg.mozilla.org/mozilla-central/rev/be920676ff3b
https://hg.mozilla.org/mozilla-central/rev/01e9db998d64
https://hg.mozilla.org/mozilla-central/rev/0364b18c9253
https://hg.mozilla.org/mozilla-central/rev/b34a32e1fc3e
Description
•