Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify applicability of S/MIME email validation policies #200

Open
wthayer opened this issue Dec 23, 2019 · 8 comments
Open

Clarify applicability of S/MIME email validation policies #200

wthayer opened this issue Dec 23, 2019 · 8 comments
Labels
smime Issues related to SMIME certificates

Comments

@wthayer
Copy link
Contributor

wthayer commented Dec 23, 2019

Clarify which certificate fields our S/MIME email address validation rules apply to. Is it only Rfc822Names in the SAN, or does it include the CN, Subject:Email, and potentially other fields?

Some research is needed to determine if Thunderbird will validate an S/MIME certificate with an email address in the CN or some other field besides the SAN.

@dougbeattie
Copy link

This is a good question. Certainly the email addresses in the following need to be validated:

  • Subject DN: CN: Although, we should not really use that for email addresses. Perhaps we should forbid this? If the value is here, then it should/MUST also be in the SAN RFC822 field
  • Subject DN: E: yes, certainly this needs to be validated, and any value here MUST be in the SAN RFC822 field
  • SAN: RFC822: yes, certainly all of the email addresses in this field need to be validated.

I have a question about the SAN: Other Name: UPN. This is a login ID that is in the format of an RFC822 email address. Since it's not used for SMIME, does this need to be validated following the same rules as the fields containing email addresses above?

@juanangelmg
Copy link

I have a question about the SAN: Other Name: UPN. This is a login ID that is in the format of an RFC822 email address. Since it's not used for SMIME, does this need to be validated following the same rules as the fields containing email addresses above?

This login ID is recommended to be in RFC822 email address’ format.

I've seen several UPNs that only have the prefix and I'm not sure that it's a violation of anything.

@dougbeattie
Copy link

I'd like to propose this change to section 2.2 of the Mozilla Policy:

Change this:

the CA takes reasonable measures to verify that the entity submitting the request controls the email account associated with the email address referenced in the certificate.

to this:

the CA takes reasonable measures to verify that the entity submitting the request controls the email account associated with the email address that is contained in the subject:commonName, subject:emailAddress, or subjectAltName:rfc822Name fields and that any value in the subject MUST also appear in the subjectAltName:rfc822Name.

@dougbeattie
Copy link

dougbeattie commented May 8, 2020

Hi Ben and Kathleen,

What are your thoughts on the proposed change above?

@BenWilson-Mozilla
Copy link
Collaborator

When you say "that any value in the subject MUST also appear in the subjectAltName:rfc822Name" I assume that needs to be limited to an email address if it appears in the commonName or emailAddress, so does it need to say that explicitly?

@BenWilson-Mozilla
Copy link
Collaborator

@dougbeattie
In other words, I think there is just a little bit of wordsmithing that needs to be done, right?

Should it say, "the CA takes reasonable measures to verify that the entity submitting the request controls the email account associated with the email address that is contained in the subject:commonName, subject:emailAddress, or subjectAltName:rfc822Name fields and that any email address in the subject:commonName or subject:emailAddress MUST also appear in the subjectAltName:rfc822Name. ?  Is that the intent?

@dougbeattie
Copy link

@BenWilson-Mozilla , Yes! This clarifies a few things:

  1. the scope of the requirement for email address validation now specifies the exact fields which must be validated in accordance with section 2.2 vs. "the email address referenced in the certificate"
  2. You MUST to put the email address in the subjectAltName:rfc822Name
  3. Email addresses in other fields within a certificate intended for Secure Mail don't need to follow this level of validation (for example in the UPN when the certificate is used for Secure Mail and Client Authentication.)

@BenWilson-Mozilla
Copy link
Collaborator

With that clarification, it sounds OK to me.

@BenWilson-Mozilla BenWilson-Mozilla added the smime Issues related to SMIME certificates label Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smime Issues related to SMIME certificates
Projects
None yet
Development

No branches or pull requests

4 participants