From: Jim Clark Date: 2007-11-30T19:16:36+09:00 Subject: Re: Problems using client certificates with net/https Daniel Sheppard wrote: > Given the fact that you're username looks like a windows domain user > name, I'm guessing that the server is using NTLM authentication and not > basic authentication As Homer would say, "D'oh!". I checked the web server and it is indeed running "Integrated Windows Authentication". Thank you for pointing out what was staring me in the face. To get NTLM authentication working with net/https, I found http://code.google.com/p/ruby-httpclient/wiki/Home and thought this would be a good option. Reading up on it would seem all I would need to do is apply the patch files to ntlm.rb and open-uri.rb and change my authentication line from: request.basic_auth 'DOMAIN\username', 'password' to request.ntlm_auth 'DOMAIN\username', 'password' No dice though... http.rb still has no clue about NTLM authentication. I started to modify http.rb to handle NTLM authentication based on the example in rubyntlm that uses sockets but found myself getting far deeper into NTLM auth than I wanted to for what should be a fairly short and simple project. So, being lazy and pressed for time, I took another look and found the httpclient-2.1.2 library. However, documentation is sparse so does anyone have any good examples of it in use? Thanks in advance! -Jim