Certificate Setup

This section describes how to install sample certificates to support code samples and labs. Labs that require certificates will include a note requesting that you complete this section before you begin.

Sample Certificates

When you import certificates to the certificate store, you must choose a particular certificate store. In the labs and code samples for this book, I am using the LocalMachine as the “server” store for certificates, and CurrentUser for “client” certificates. Table A-2 provides a list of certificates used by the code in this book and the appropriate location for installation.

Table A-2. List of certificates and locations for installation

Certificate filename

Subject key

Description

LocalMachine

CurrentUser

RPKey.pfx

CN=RPKey

Private key pair for the relying party (target services).

Personal

N/A

RPKey.cer

 

Public key for target services.

TrustedPeople, Trusted Root Certification Authorities

Personal

IPKey.pfx

CN=IPKey

Private key pair for identity provider services.

Personal

N/A

IPKey.cer

 

Public key for identity provider services.

TrustedPeople, Trusted Root Certification Authorities

N/A

SubjectKey.pfx

CN=SubjectKey

Private key pair for client applications.

N/A

Personal

SubjectKey.cer

 

Public key for client applications.

Personal, TrustedPeople, Trusted Root Certification Authorities

N/A

LocalHost.pfx

CN=LocalHost

Private key pair to use import as the SSL certificate in IIS.

Personal, Trusted ...

Get Learning WCF now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.