Creating test X.509 certificates for WCF Service
When dealing with message or transport layer security in WCF service development, it is quite often possible that we will need to get some X.509 certificates for tests in development environment. For a production environment, we can obtain X.509 certificates from some well-know, public certificate authorities such as VeriSign, Inc. Then, how can we generate some temporary certificates for testing scenarios at development time?
In this recipe, we will go through several simple and handy means for creating X.509 certificates used at WCF service development time.
How to do it...
We will demonstrate two very common means for creating test X.509 certificates on Windows development environment. One is using the Windows operating system's built-in Windows Certificate Service and the other is using the makecert.exe
tool provided in .NET framework SDK.
Use Windows Certificate Services.
If in your development environment there is a Windows 2000, 2003, or...