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 ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.