[Mono-bugs] [Bug 594110] SSL X.509 SubjectAltNameExtension does not work with more than 1 value (breaks HttpWebRequest)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 8 09:36:14 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=594110

http://bugzilla.novell.com/show_bug.cgi?id=594110#c3


--- Comment #3 from Sebastien Pouliot <spouliot at novell.com> 2010-04-08 13:36:14 UTC ---
Bad patch and bad test case*.

The SubjectAltNameExtension should be constructed with either the extension
itself (preferred), e.g.:

SubjectAltNameExtension sane = new SubjectAltNameExtension (cert.Extensions
["2.5.29.17"]);

or with the ASN1 content (not RawData)

SubjectAltNameExtension sane = new SubjectAltNameExtension (cert.Extensions
["2.5.29.17"].ASN1);


* ServicePointManager is doing it wrong - while the original code, in
class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs,
has it right ;-)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list