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

Parse CN from DN using OpenSSL facilities #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

droe
Copy link

@droe droe commented Feb 1, 2012

Use OpenSSL facilities to parse the CN from the DN. This allows to
correctly parse certificates which have additional DN components after
the CN, such as "emailAddress". The manual parsing included additional
components following the CN as part of the common name, which in turn
lead to DNS lookups for malformed domain names such as
"www.example.com/emailAddress=[email protected]".

Fixes issue #12 reported by ju916

Use OpenSSL facilities to parse the CN from the DN.  This allows to
correctly parse certificates which have additional DN components after
the CN, such as "emailAddress".  The manual parsing included additional
components following the CN as part of the common name, which in turn
lead to DNS lookups for malformed domain names such as
"www.example.com/[email protected]".
@artgoldberg
Copy link

In my view, the behavior of openssl req (LibreSSL 2.8.3) which appends email to the CN is a bug, as it leads browsers like Chrome to report "Your connection is not private" and NET::ERR_CERT_COMMON_NAME_INVALID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants