I\'m getting this error while attempting to make my WCF client and server talk to each other.
The X.509 certificate CN=localhost chain building faile
Add endpoint behavior in your client application(e.g:App.config) and set the behavior configuration you added in the endpoint.