[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:41:16 EDT 2010


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

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


--- Comment #4 from Sebastien Pouliot <spouliot at novell.com> 2010-04-08 13:41:15 UTC ---
The fix is:

Index: System.Net/ServicePointManager.cs
===================================================================
--- System.Net/ServicePointManager.cs    (revision 155046)
+++ System.Net/ServicePointManager.cs    (working copy)
@@ -627,8 +627,7 @@
                     X509Extension ext = cert.Extensions ["2.5.29.17"];
                     // 1. subjectAltName
                     if (ext != null) {
-                        ASN1 asn = new ASN1 (ext.RawData);
-                        SubjectAltNameExtension subjectAltName = new
SubjectAltNameExtension (asn);
+                        SubjectAltNameExtension subjectAltName = new
SubjectAltNameExtension (ext);
                         // 1.1 - multiple dNSName
                         foreach (string dns in subjectAltName.DNSNames) {
                             // 1.2 TODO - wildcard support


but that needs a bit more work since it breaks the build (likely a bootstrap
issue)

-- 
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