Click here to Skip to main content
15,881,424 members
Articles / Web Development / ASP.NET

An easy way to use certificates for WCF security

Rate me:
Please Sign up or sign in to vote.
4.69/5 (38 votes)
30 Apr 2007MIT12 min read 475.6K   7.2K   136  
An easy solution to use certificates on Windows Communication Foundation loading the certificates from files

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "E:\...\Server\", "Server\", "{C4E40F89-B295-4B5B-990D-392DCC5C8509}"
	ProjectSection(WebsiteProperties) = preProject
		ProjectReferences = "{87A714E0-7EAD-4114-82CE-27C7914C4434}|DevAge.ServiceModel.dll;"
		Debug.AspNetCompiler.VirtualPath = "/Server"
		Debug.AspNetCompiler.PhysicalPath = "Server\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Server\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/Server"
		Release.AspNetCompiler.PhysicalPath = "Server\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Server\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "1281"
		DefaultWebSiteLanguage = "Visual C#"
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client\Client.csproj", "{218656D4-C9D2-4E00-9880-90B273CC1C06}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documents", "Documents", "{7D584B91-28D2-4ECE-BA63-98D2E0D079FF}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
	ProjectSection(SolutionItems) = preProject
		Documents\style.css = Documents\style.css
		Documents\WCFCertificates.htm = Documents\WCFCertificates.htm
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevAge.ServiceModel", "DevAge.ServiceModel\DevAge.ServiceModel.csproj", "{87A714E0-7EAD-4114-82CE-27C7914C4434}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|.NET = Debug|.NET
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Release|.NET = Release|.NET
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Debug|.NET.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Debug|.NET.Build.0 = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Debug|Any CPU.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Debug|Mixed Platforms.Build.0 = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Release|.NET.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Release|.NET.Build.0 = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Release|Any CPU.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
		{C4E40F89-B295-4B5B-990D-392DCC5C8509}.Release|Mixed Platforms.Build.0 = Debug|.NET
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Release|.NET.ActiveCfg = Release|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Release|Any CPU.Build.0 = Release|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{218656D4-C9D2-4E00-9880-90B273CC1C06}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Debug|.NET.ActiveCfg = Debug|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Release|.NET.ActiveCfg = Release|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Release|Any CPU.Build.0 = Release|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{87A714E0-7EAD-4114-82CE-27C7914C4434}.Release|Mixed Platforms.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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 MIT License


Written By
Software Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions