WebService Client Certificate Problem

K

Koan B

(Cross-posted to dotnet.framework.aspnet.webservices and
dotnet.framework.webservices, follow-ups set to
dotnet.framework.aspnet.webservices)

Hi,

I'm attempting to connect to a 3rd party web service (for which they
have supplied client certificates), but with no success.

As far as I can tell, the code below should work, however, I always
get back an HTTP 403 (Forbidden) error returned. (I've also tried
loading the certificate from the certificate store with exactly the
same result.

I'm using a WSDL file as the basis for the interface to a web service
and using the following code (based on MSDN documentation):

/////////////////////////////////////////////////////////////////////
service = new RequestService();

// certificate is the path to a DER encoded x509 certificate
X509Certificate x509 =
X509Certificate.CreateFromCertFile(certificate);
service.ClientCertificates.Add(x509);

// Create a request object
RequestType request = new RequestType();
// Build request

// MakeRequest method of the service
ReplyType reply = service.MakeRequest(request);
/////////////////////////////////////////////////////////////////////

Cheers,

Koan
 
K

Koan B

(Cross-posted to dotnet.framework.aspnet.webservices and
dotnet.framework.webservices, follow-ups set to
dotnet.framework.aspnet.webservices)

Hi,

I'm attempting to connect to a 3rd party web service (for which
they have supplied client certificates), but with no success.
<Snip>

So this is a managed newsgroup; so I make the original post (and
this) using my registered address; so I'm underwhelmed by the lack of
a response from Microsoft nearly *five* days after the original post.

C'est la vie.
 
K

Koan B

Though it appears you were waiting for free support from
Microsoft, if I may suggest, there are a lot of solutions out
there on the web. You just need to keep looking. Try this:

http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx

HTH,

JH

Jason,

Thanks for your reply! I made my original post on behalf of a
colleague, so I've passed details of your reply to him.

FYI, I wasn't expecting "free" support from Microsoft; I was
expecting support which has been paid for, as part of my MSDN
Universal subscription, as described on
http://msdn.microsoft.com/newsgroups/managed - the relevant portion
being "MSDN managed newsgroups are available in English to MSDN
Universal, Enterprise, Professional and Operating Systems subscribers
to receive free technical support on select Microsoft technologies as
well as to share ideas with other subscribers. MSDN managed
newsgroups provide:

* Unlimited on-line technical support - keep your PSS incidents
* A commitment to respond to your post within two business days
* Over 200 newsgroups to choose from
* Spam protection for your e-mail address when posting items"

This newsgroup is one of the managed newsgroups (according to that
page), I posted using my registered posting address (according to
that page)... Microsoft hasn't lived up to the stated commitment to
respond (according to that page).

Never mind.

Cheers,
Koan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top