[erlang-patches] public_key: Workaround for incorrectly encoded utf8 emailAddress

Andrew Bennett <>
Fri Nov 8 01:46:03 CET 2013



This pull request allows certificates with an improperly encoded
emailAddress entry to be decoded.

It is very similar to commit
2012-08-23 which did the same thing for improperly encoded
X520countryName entries.

In addition to the extra test case for emailAddress, there is a minor
spelling correction in public_key_SUITE related to the X520countryName test
case (incorrect_cuntry_name to incorrect_country_name).

    Most common browsers are lax in thier handling of how the
    emailAddress field is encoded. RFC 3280 section
    defines the encoding as IA5String, however browsers will
    also handle certificates with the emailAddress field
    encoded as UTF8String. This fix allows the emailAddress
    to be decoded as both an IA5String and an UTF8String.

Andrew Bennett

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20131107/e3ac1b3d/attachment.html>

More information about the erlang-patches mailing list