DescriptionGenerate unique certificate nicknames on Linux/CrOS.
When importing certificates on Linux/CrOS where the user has a pre-existing
cert, generate a unique certificate nickname if the DER-encoded subjects do
not match, as required by NSS.
This updates the template from being:
<subject common name>'s <issuer common name> ID
to:
<subject display name>'s <issuer display name> ID [#d]
Where #d will be appended with an incrementing number until a unique nickname
is found. Note that "display name" represents a gradiation that starts with
common name, then organization name, than organizational unit name.
Note: This does not address PKCS#12 importing - only importing CA certificates
(root and intermediate) and server certificates via the UI, or the handling
of application/x-x509-user-cert (via download).
BUG=237870
TEST=net_unittests added. Additionally, test that server & CA certificates can
still be imported fine through the UI.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201748
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : Update README #
Total comments: 17
Patch Set 4 : Review feedback #Patch Set 5 : _NE -> _STRNE #
Messages
Total messages: 5 (0 generated)
|