WCF Authentication Using SSL

I am very new to WCF, and I created a service that will be used through the Windows mobile application using basicHttpBinding. Now I am looking at how to implement encrpytion and authenticaion, and I'm not very far away.

I added the following configuration of my server service (which I believe is correct):

<basicHttpBinding> <binding name="SecurityByTransport"> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName" /> <transport clientCredentialType="Certificate" /> </security> </binding> </basicHttpBinding> 

Now, after installing the temporary certificate on my IIS instance, I can go to my service through https.

At this point, I used the visual studios built into the tool to run svcutil.exe and generated my proxy server, which connects perfectly.

I have a problem in the client configuration, because the link to the endpoint uses http, not https. If I change this, I get the following error:

 The provided URI scheme 'https' is invalid; expected 'http'. 

Which, obviously, I do not want.

Also in my client configuration, the specified security seems "None", is this correct?

+6
wcf
source share

No one has answered this question yet.

See related questions:

178
Catch-22 prevents the protection of the WSF TCP WCF service from WIF; the destruction of my Christmas, mental health
8
Is WCF a service certificate required for client authentication?
6
WCF Transport Security without Authentication
4
SSL and WCF Security
0
SSL server certificate on client computer?
0
Wcf with client certificate authentication does not work with soapui
0
Secutiy message level with SSL in WCF
0
Android WCF User Password Authentication

All Articles