473,748 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WCF Certificate Authentication Problems

Hi,
I am trying to configure my service to authenticate clients using
certificates.
Here is the relevant portion of the web.config:
<system.service Model>
<services>
<service behaviorConfigu ration="returnF aults" name="WCFSecure Service">
<endpoint binding="wsHttp Binding"
bindingConfigur ation="Transpor tSecurity"
contract="IWCFS ecureService"/>
<endpoint address="mex"
binding="mexHtt psBinding"
name="MetadataB inding"
contract="IMeta dataExchange"/>
</service>
</services>

<behaviors>
<serviceBehavio rs>
<behavior name="returnFau lts">
<serviceDebug includeExceptio nDetailInFaults ="true"/>
<serviceMetadat a httpsGetEnabled ="true"/>
<serviceTimeout s/>
</behavior>
</serviceBehavior s>
</behaviors>

<bindings>
<wsHttpBindin g>
<binding name="Transport Security">
<security mode="Transport ">
<transport clientCredentia lType="Certific ate"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceM odel>

When testing this service I am getting the following exception:
The SSL settings for the service 'None' does not match those of the IIS
'Ssl, SslNegotiateCer t, SslRequireCert' .
Prior to the exception I am being prompted to select a certificate from the
list.

I am hosting this service in IIS and the virtual directory for this serice
is configured with the following settings:
Require secure channel (IIS is setup with a certificate).
Client Certificate -Require client certificates.

I assume that the issue is somewhere around mismatch between IIS
configuation and Service configuration, but I am unable to find documentation
on how those two should be configured in this scenario.

Thanks in advance.
Alex.
May 28 '07 #1
0 2227

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1629
by: Dennis.Hoffman | last post by:
I have been using XML-RPC to get information from one of our remote servers. To improve security, the server now has a certificate installed, and when I try to access it, I get an 'Unauthorized' exception. Is there an xmlrpclib module that supports (client-side) certificate-based authentication? If so, where can I get it, and what is involved in doing the authentication? If not, what are my options? thanks
0
2433
by: Joey Edelstein | last post by:
Hi, We are trying to add a Client Certificate support for our web app that emulates a hardware device web app. The hardware uses a 2 factors authentication, which requires a Web Service client to send: Client Certificate and Username / password. We are using a Web Service provider which uses IIS 5.1 as HTTP server. IIS is set to require client certificate and Basic Authentication.
4
8777
by: Guru | last post by:
I have a problem to enroll certificates with "Certificate Type: Computer" by using the CCertRequest object. Beforehand I create a Certificate Signing Request via Cenroll.createPKCS10(). The PKCS10 string is passed to the CCertRequest.submit() method which contacts the MS 2003 Enterprise CA for enrollment. This works fine for Certificate Templates that have a Certificate Type of User. For example the enrollment of a Webserver certificate...
1
1531
by: jnet | last post by:
Hi, How Do I retrieve the mapped account to a client certificate in .NET? I have multi certificates distributed to different clients; I want to know from whom the request is coming, so I can load the appropriate settings into session, Instead of following forms/windows authentication, we just want to follow Client Certificate Authentication, since most of the services are thru Web services.
0
1498
by: blackjack2150 | last post by:
Hi! Just one question. I'm writing a web service client in .NET with C#. In order to use this ws's operations the client must be authenticated by providing a registered certificate to the server. Until recently I was convinced that this was done by just using the ClientCertificates.Add() of the object describing the web service. I didn't notice, though, that I've also has that certificate installed in the Internet Explorer Certificate...
0
2498
by: Sinex | last post by:
Hi, Am developing a web service that is gonna be consumed by a client over https. I'm using certificates to get the mutual authentication in place. On the server side, I want my service to be able to extract some fields from the client's certificate. I tested the service using the browser and it works fine...proving that the client IS sending its certificate and is getting authenticated at IIS level. In the web method, I'm trying to...
0
1833
AnuSumesh
by: AnuSumesh | last post by:
Hi all, I want to use certificate authentication for my site. I have installed CA on my server which is responsible for issuing the certificates to client machine on request. I want that these certificates should not be exportable - means if certificate is issued on one machine then same should not be used on any other machine. Is there any way to do this?
1
6021
by: =?Utf-8?B?Umljaw==?= | last post by:
I am developing a WCF based app on Vista using IIS 7.0 but it will be deployed on Microsoft Server 2003 with IIS 6.0. The app uses WSHttpBinding and mutual Certificate authentication. The app works fine in the Vista IIS7.0 environment, but when moving it to the test environment that matches production, I cannot get certificate authentication to work. I get the following error: "The certificate that was used has a trust chain that cannot be...
1
6585
by: Binoy | last post by:
Hi We have two server SSL certificates from Thawte. We set up these two SSL in the same server. Now, we want to access a web service hosted by one of our customer in their
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.