title: WCF Certificates without Certificate Store
body: <p>My team is developing a number of WPF plug-ins for a 3rd party thick client application. The WPF plug-ins use WCF to consume web services published by a number of TIBCO services. The thick client application maintains a separate central data store and uses a proprietary API to access the data store. The thick client and WPF plug-ins are due to be deployed onto 10,000 workstations. Our customer wants to keep the certificate used by the thick client in the central data store so that they don't need to worry about re-issuing the certificate (current re-issue cycle takes about 3 months) and also have the opportunity to authorise the use of the certificate. The proposed architecture offers a form of shared secret / authentication between the central data store and the TIBCO services.</p>
  
  <p>Whilst I don’t necessarily agree with the proposed architecture our team is not able to change it and must work with what’s been provided. </p>
  
  <p>Basically our client wants us to build into our WPF plug-ins a mechanism which retrieves the certificate from the central data store (which will be allowed or denied based on roles in that data store) into memory then use the certificate for creating the SSL connection to the TIBCO services. No use of the local machine's certificate store is allowed and the in memory version is to be discarded at the end of each session.</p>
  
  <p>So the question is does anyone know if it is possible to pass an in-memory certificate to a WCF (.NET 3.5) service for SSL transport level encryption?</p>
  
  <p><em>Note: I had asked a similar question (<a href="https://stackoverflow.com/questions/2383575/in-memory-certificate-for-wcf">here</a>) but have since deleted it and re-asked it with more information.</em></p>