[Mono-bugs] [Bug 555621] New: NTLM-Authentication on https server failes on certificates

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 15 06:14:03 EST 2009


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


           Summary: NTLM-Authentication on https server failes on
                    certificates
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: adrian.eggenberger at arendi.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


--- Comment #0 from Adrian Eggenberger <adrian.eggenberger at arendi.ch> 2009-11-15 11:13:51 UTC ---
Created an attachment (id=327587)
MonoDevelop/VS2008 solution to reproduce this bug.

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de;
rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

Our MonoTouch application tries to get some information from a https server in
the internet. Both ways we tried (HttpWebRequest or WebClient) fail do download
the required file/information even with the correct credentials. 

By using the ServicePointManager we are able to see the check of the used
certificate. The check of the certificate in CheckValidationResult showed a
certificate problem (Problem Code = 0x800B010A - indicating a certificate chain
problem).


To verify the problem i also tested the code under Mono in OSX which resulted
in a similar failed behavior. Access the service from a Browser (e.g. Firfox)
works fine. 
The same code running on Windows with the .NET framework works fine and shows
no problems (Problem Code = 0) on certificate validation. It can also be seen,
that the app tries 3 times to connect successfuly at the end.

Reproducible: Always

Steps to Reproduce:
1) Setup a https server with certificates (propably a certificate chanin is
required to reproduce it).
2) Open the attached test solution and insert your URL, Username and Password.
3) Start the application to access the service by HttpWebRequest and WebClient.
Actual Results:  

Output running in MonoTouch:

TEST NTLM with HttpWebRequest class
-----------------------------------
Certificate Validation (Problem Code 0x800B010A)

Error: The remote server returned an error: (401) Unauthorized. Status:
ProtocolError



TEST NTLM with WebClient class
------------------------------
Error: The remote server returned an error: (401) Unauthorized. Status:
ProtocolError



Output running in Mono on OSX:
TEST NTLM with HttpWebRequest class
-----------------------------------
Certificate Validation (Problem Code 0x800B010A)

Error: The remote server returned an error: (401) Unauthorized. Status:
ProtocolError



TEST NTLM with WebClient class
------------------------------
Error: An error occurred performing a WebClient request. Status: UnknownError



Expected Results:  
Output running in Visual Studio 2008 on WinXP:
TEST NTLM with HttpWebRequest class
-----------------------------------
Certificate Validation (Problem Code 0x00000000)

Certificate Validation (Problem Code 0x00000000)

Certificate Validation (Problem Code 0x00000000)

Success



TEST NTLM with WebClient class
------------------------------
Certificate Validation (Problem Code 0x00000000)

Certificate Validation (Problem Code 0x00000000)

Success


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