Click here to Skip to main content
12,625,084 members (39,420 online)
Click here to Skip to main content

Tagged as

Stats

41.8K views
2.9K downloads
27 bookmarked
Posted

Use Mutual SSL Authentication in WCF

, 16 Mar 2012 CPOL
How to configure and use Mutual SSL Authentication in WCF.
HttpsBindingDemo
MyClient
Properties
Service References
SecuredServices
configuration.svcinfo
configuration91.svcinfo
EchoService.wsdl
item.disco
Reference.svcmap
MyService
Properties
NetTcpBindingDemo
MyClient
Properties
Service References
SecuredServices
configuration.svcinfo
configuration91.svcinfo
EchoService.wsdl
Reference.svcmap
MyService
Properties
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HttpsBindingDemo.SecuredServices;

namespace HttpsBindingDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new EchoServiceClient();
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(client.Echo("Hello World!"));
            Console.ResetColor();

            Console.ReadLine();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Elvin Cheng
Singapore Singapore
Elvin Cheng is currently living in Woodlands, Singapore. He has been developing applications with the .NET Framework, using C# and ASP.NET since October 2002. Elvin specializes in building Real-time monitoring and tracking information system for Semi-conductor manufacturing industry. During his spare time, he enjoys reading books, watching movie and gym.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 16 Mar 2012
Article Copyright 2012 by Elvin Cheng
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid