I believe that this is correct:
using (X509Store store = new X509Store(StoreName.TrustedPeople, StoreLocation.LocalMachine))
{
store.Open(OpenFlags.ReadWrite);
store.Add(cert); //where cert is an X509Certificate object
}
More Related Contents:
- How can I create a self-signed certificate using C#?
- How does WCF deserialization instantiate objects without calling a constructor?
- Sometimes adding a WCF Service Reference generates an empty reference.cs
- creating WCF ChannelFactory
- Pattern for calling WCF service using async/await
- How can I return a custom HTTP status code from a WCF REST method?
- How to make a call to my WCF service asynchronous?
- What replaces WCF in .Net Core?
- IIS WCF service hosting vs Windows Service
- Queuing in OneWay WCF Messages using Windows Service and SQL Server
- Large WCF web service request failing with (400) HTTP Bad Request
- WCF Service Client: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding
- Different forms of the WCF service contract interface
- WCF Error – Could not find default endpoint element that references contract ‘UserService.UserService’
- CORS Support within WCF REST Services
- Get timestamp from Authenticode Signed files in .NET
- Dependency Injection wcf
- Get All IP Addresses on Machine
- Patterns for Compensating Lack of Inheritance in SOA
- C# – WCF – inter-process communication
- WCF HttpTransport: streamed vs buffered TransferMode
- How do I prevent a WCF service from enter a faulted state?
- How can I prevent BufferManager / PooledBufferManager in my WCF client app from wasting memory?
- WCF and interfaces on data contracts
- Authentication Service using WCF
- System.ServiceModel not found in .NET Core project
- What steps do I need to take to use WCF Callbacks?
- Client configuration to consume WCF JSON web service
- Web Service without adding a reference?
- Is TLS 1.1 and TLS 1.2 enabled by default for .NET 4.5 and .NET 4.5.1?