moxie0/sslsniff — pull request #15 by droe (2012-02-01 23:09:47+00:00)
Title: Parse CN from DN using OpenSSL facilities

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=jdoe@example.com.example.org".

Fixes issue #12 reported by ju916