I have a windows service, that is controlled by an windows forms programm via WCF. At the moment there is no security enabled, so that everyone can sniff the communication between the windows service and the windows forms program.
Now I want to secure the communication, so I have to use certificates. But I do not want to provide a global certificate to the service, because the service and the monitoring program is running by customer.
So my questions are:
Is it a good solution to create self signed certificates at installation time on client machine to use for wcf?
Is there a way to create a self signed certificate in c#? The only solution I have found was using MakeCert or to invoke CertEnroll.dll.