deal with certificate nickname-related API removals in bug 857627
Categories
(MailNews Core :: Security: S/MIME, defect)
Tracking
(thunderbird52 unaffected, thunderbird53 fixed)
Tracking | Status | |
---|---|---|
thunderbird52 | --- | unaffected |
thunderbird53 | --- | fixed |
People
(Reporter: keeler, Assigned: mkmelin)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 3 obsolete files)
2.22 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
19.75 KB,
patch
|
jorgk-bmo
:
review+
Paenglab
:
feedback+
|
Details | Diff | Splinter Review |
![]() |
Reporter | |
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Assignee | ||
Comment 9•9 years ago
|
||
![]() |
Reporter | |
Comment 10•9 years ago
|
||
Assignee | ||
Comment 11•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Assignee | ||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•6 years ago
|
||
(In reply to comment #0)
(That whole function looks a bit suspect - it appears to be trying to get
two different certificates that nonetheless have the same nickname, which I
didn't think was possible. It may be that that code can be deleted entirely.)
FYI, this it related to a functionality called "dual-key certificates", mentioned here:
https://www-archive.mozilla.org/projects/security/pki/psm/smime_guide.html
With "dual-key certificates", the user creates two key pairs, and obtains two certificates. Both certificates use the same subject, but have different serial numbers, usage, and keys.
If you use a different key for encryption, then a corporate environment could escrow a person's encryption key. However, by using a different key for signing, the escrowed key cannot be used to sign in the person's name.
The reason why the S/MIME preferences allow to configure separate certificates for signing and encryption, is to support dual-key certificates.
By storing the nickname, it was possible to search for the certificate, obtain more than one result, and then select the appropriate one based on the certificate's embedded usage attribute.
The changes made here disabled storage of the nickname.
I don't remember if any part of the S/MIME code relied on that.
We'd have to test if the changes broke support for dual-key certificates in any way.
Description
•