add PK11_GetCertsFromPrivateKey to return all certificates with public keys matching a particular private key
Categories
(NSS :: Libraries, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: keeler, Assigned: keeler)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
When Firefox looks for client certificates with private keys using CERT_FindUserCertsByUsage
, NSS enumerates all certificates on all tokens, which as the performance data from bug 1573542 indicates, is slow when there are many certificates (e.g. they've cached all known intermediates). On the assumption that typical users have far fewer private keys than certificates, it would be more efficient to start by enumerating private keys (using e.g. PK11_ListPrivKeysInSlot
) and then get certificates corresponding to those keys. However, PK11_GetCertFromPrivateKey
only returns one certificate for a given private key, when there may be multiple certificates that have a public key that matches. The intent of this bug is to add a function that behaves like PK11_GetCertFromPrivateKey
but returns every matching certificate.
Assignee | ||
Comment 1•5 years ago
|
||
PK11_GetCertFromPrivateKey only returns one certificate with a public key that
matches the given private key. This change introduces
PK11_GetCertsFromPrivateKey, which returns a list of all certificates with
public keys that match the given private key.
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Description
•