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

Andrew Bennett andrew@REDACTED
Fri Nov 8 01:46:03 CET 2013


Hello,

https://github.com/erlang/otp/pull/131

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

It is very similar to commit
https://github.com/erlang/otp/commit/69d4a56d9f7ade14fd0496ffbf56d96bf9184aeffrom
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 4.1.2.6
    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.

Thanks,
Andrew Bennett
andrew@REDACTED
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20131107/e3ac1b3d/attachment.htm>


More information about the erlang-patches mailing list