Click here to Skip to main content
16,013,747 members

Comments by Member 859721 (Top 2 by date)

Member 859721 7-Jun-13 5:50am View    
In Security.Mode in transport mode ,I created a service certificate ,imported to the store from .pfx file(containing the private key and public key). Then I exported from the the public key from it and created another certificate and added that in the store as client certificate. And I am getting the below error .Please help on this.

The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:09.9470000'.

I think I am not having clear concept of which certificate to use where. I have gone through many links but still I think its a bit unclear.

I think server should use a certificate which is having only the private key. And the client should use the certificate with the pairing public key. We can create public key by exporting the same in the store. If my thinking is correct then the question is how to create a certificate with only private key.

If I can get the overview(not in details) how this private and public key part used in server and client and how to create the respective certificates that will be very helpful.
Member 859721 3-Jun-13 0:57am View    
Well, the most of the above links are configuring certificates with IIS. But I want to configure with nettcp.

However I found that if the Security.Mode is changed to Transport in both client and server then the client certifiact needs to be configured in client otherwise in TransportWithMessageCredential mode the communication works without the client certificate.
Can anyone explain the reason for this?