My condition:
- A WCF service which is self-hosted and it's on a Win8 Machine.
- Client is a WPF Program on another machine.
- Then I follow the article on Codeproject about how to set X509 certificate for WCF.
Problem Description:
- Communication between Client and Service was OK when they are on the same Machine.
- When I put the Client on another machine, exception occurs that it says "The caller is not authenticated by the service".
I believe the cause of the exception above may be relevant to X509 Certificate.
When I put the Client.exe on another computer, I just generate a new certificate for client, is it right?
I want to know if the X509 Client certificate should be exported from the service Machine which has generated both client and server certificate, and then be imported into other Client Machine, or just use makecert.exe generate another certificate for other Client Machine?
In short, can the certificate be generated by any machine or only by the machine having generated the service certificate?