The article describes how to secure a webservice. However, the
webservice is already working. The problem I have is that I need two
encryption. Although I can supply more than one certificate using the
> Hi,
>
> This article may help you to solve the problem, it mainly discusses
> different approaches to secure a web service using X509 certificates.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/html/httpsecurity.asp
>
> Regards,
> Pablo Cibraro.
>
>
> <b.fokke@gmail.com> wrote in message
> news:1164725122.389441.193800@14g2000cws.googlegroups.com...
> > I'd like to connect to a webservice using TLS/SSL. I have two separate
> > client certificates:
> > 1. A certificate for digital verification
> > 2. A certificate for encryption.
> >
> > When I use the first one (i.e. add it to the ClientCertificates
> > collection of the web request), I can establish a connection but I get
> > a WebException: "Underlying connection closed: Could not establish
> > trust relationship". When I use the second one I can't even establish a
> > connection.
> >
> > When I add both certificates to the ClientCertificates collection, it
> > seems only the first one I added is used and from what I found, I'd
> > think the certificate is used to set up the connection. So how do I
> > specify to use an alternate certificate for encryption?
> >
> > You'd think that .NET should be able to find it out automatically by
> > looking at the certificate usage flags but it doesn't.
> >
> > Any help would be greatly appreciated!
> >