Open Bug 540498 Opened 14 years ago Updated 2 years ago

Optionally include cert chain root in signed emails

Categories

(MailNews Core :: Security: S/MIME, defect)

defect

Tracking

(Not tracked)

People

(Reporter: bob.lord, Unassigned)

References

Details

(Whiteboard: [patchlove])

Attachments

(4 files)

This topic is mentioned in Bug 354273 but needs to be called out separately.

It is legal for an S/MIME client to send a cert chain that includes the root. There are some circumstances where that behavior is desirable. Today, TB only sends the cert chain up to, but not including the root cert.
Microsoft Outlook seems to need the root certificate.

I think this requires the following change in mozilla/security/nss/cmd/smimetools/cmsutil.c 

-    if (NSS_CMSSignerInfo_IncludeCerts(signerinfo, NSSCMSCM_CertChain,
+    if (NSS_CMSSignerInfo_IncludeCerts(signerinfo, NSSCMSCM_CertChainWithRoot,

I didn't test this yet.
Comment on attachment 813716 [details] [diff] [review]
Include cert chain root in signed emails

I'm not sure how you picked me as a reviewer, but I'm totally unfamiliar with any of this. Perhaps you meant bsmith?
Attachment #813716 - Flags: review?(benjamin) → review?(brian)
Comment on attachment 813716 [details] [diff] [review]
Include cert chain root in signed emails

Review of attachment 813716 [details] [diff] [review]:
-----------------------------------------------------------------

I am not so familiar with the S/MIME code. Pushing to rrelyea.
Attachment #813716 - Flags: review?(brian) → review?(rrelyea)
Depends on: 971271
(In reply to Frederik Vermeulen from comment #2)
> Created attachment 813716 [details] [diff] [review]
> Include cert chain root in signed emails

This is patching the wrong code (cmsutil is a standalone tool, completely separate from the Tb/Sm code). Furthermore, the root certificate shouldn't be included by default (contrary to what comment 1 says, it isn't needed for Outlook), it should be configurable instead.

(In reply to bug 354273 comment 2)
> I wrote a patch for this sometime in 2006, which I might be able to dig up
> again, if there's an interest in it

I'm attaching the c-c and m-c parts of that patch (unbitrotten), but without the UI part. Also, I'm not sure if it's ok to change the signature of CreateSigned in nsICMSMessage.idl, or whether that needs a new uuid etc. (can't remember that stuff).
OS: Mac OS X → All
Hardware: x86 → All
Attachment #813716 - Flags: feedback-
Yes you should reve the uuid. Don't forget to ask for reviews.
Here's the UI part, for the sake of completeness.

Anybody who wants to drive this change through (Frederik?) should feel free to do so, I don't claim any specific authorship for these patches or modifications thereof. (Personally, I think there's very little need for such an option.)
Whiteboard: [patchlove]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: