https, certificates, and: The underlying connection was closed: An unexpected error occurred on a send.
- From: Matthew.DelVecchio@xxxxxxxxxxxxxxxxxx
- Date: 6 May 2005 10:57:46 -0700
hello,
i am developing an ASP.NET web app that consumes a 3rd party vendor
webservice. it is my first one so while ive done my homework, im not an
expert on the matter.
our partner's webservice operates on SSL via an "https://" url. they
also gave me a .PFX certificate which ive installed via window's MMC
utility, into the "Computer account"'s Personal store; as indicated by
articles id found. i then export a .CER to the filesystem which my
C#.NET picks up. lastly, we attach our username/pw credentials. the
relevant code:
//costco webservice proxy object
PartnersProxyClass ws = new PartnersProxyClass();
//load certificate for costco intranet account
X509Certificate cert =
X509Certificate.CreateFromCertFile("c:\temp\foo.cer");
//add cert to ws
ws.ClientCertificates.Add(cert);
//add authentication info to ws
ws.Credentials = new NetworkCredential("foo_user", "foo_pw");
//hit ws and get a returned obj
WsMember member = ws.read(customerID);
....this works on my Windows XP dev machine, as well as on our Windows
2000 test machines. however, when we publish it to our Windows 2000
production webfarm, operating on BigIP, it does work. .NET reports this
on the .read() attempt:
"The underlying connection was closed: An unexpected error occurred on
a send."
....and, looking into our event log, i see this:
"The SSL client credential's certificate does not have a private key
information property attached to it. This most often occurs when a
certificate is backed up incorrectly and then later restored. This
message can also indicate a certificate enrollment failure."
i dont have access to the machine (big company) to try hitting the URL
via IE. however, i *did* write & install a command-line (DOS) .NET
program that does a simple test and hits the webservice serveral times
using the same code. *it works!* but our ASP.NET does not. this seems
key.
....i am trying to figure out what it all means and how to fix it. ive
read a dozen posts or so, and am exploring those options. but if anyone
can relate to our situation, i would appreciate it.
thanks!
matt
--
Matt Del Vecchio
Programmer Analyst
(619) 358-7556
.
- Follow-Ups:
- Prev by Date: parameter order is changed when use web reference!
- Next by Date: Re: UDDI - Our Own Web Service Registry?
- Previous by thread: parameter order is changed when use web reference!
- Next by thread: Re: https, certificates, and: The underlying connection was closed: An unexpected error occurred on a send.
- Index(es):
Relevant Pages
|