You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andrew M. Lim (Jira)" <ji...@apache.org> on 2021/03/02 16:08:00 UTC

[jira] [Assigned] (NIFI-8286) CertificateUtils do not support embedded emailAddress in CN

     [ https://issues.apache.org/jira/browse/NIFI-8286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew M. Lim reassigned NIFI-8286:
-----------------------------------

    Assignee: Andrew M. Lim

> CertificateUtils do not support embedded emailAddress in CN
> -----------------------------------------------------------
>
>                 Key: NIFI-8286
>                 URL: https://issues.apache.org/jira/browse/NIFI-8286
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 1.13.0
>            Reporter: Janosch Woschitz
>            Assignee: Andrew M. Lim
>            Priority: Minor
>
> RFC5280 defines that it is allowed for legacy compliance to have an emailAddress attribute embedded in the CN.
> [https://tools.ietf.org/html/rfc5280#section-4.1.2.6] 
> {code:java}
> Legacy implementations exist where an electronic mail address is
> embedded in the subject distinguished name as an emailAddress
> attribute [RFC2985]. The attribute value for emailAddress is of type
> IA5String to permit inclusion of the character '@', which is not part
> of the PrintableString character set. emailAddress attribute values
> are not case-sensitive (e.g., "subscriber@example.com" is the same as
> "SUBSCRIBER@EXAMPLE.COM").
> {code}
>  This is currently not considered in the CN extraction logic of the CertificateUtils and can cause issues with certificate based authentication, as an incorrect CN is extracted.
> *Example*
> If the following subject name is used: 
> {code:java}
> Subject: C=US, O=Apache, OU=Security, CN=Some Name/emailAddress=test@example.com
> {code}
> The following username is extracted by the CertificateUtils: 
> {code:java}
> Some Name/emailAddress=test@example.com
> {code}
> Though the following username would be expected:
> {code:java}
> Some Name{code}
> As a result, the certificate will be mapped to an incorrect CN/username and the TLS client authentication will fail.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)