As you stated right, you need only the public key to encrypt the message and
the private key associated to that public key to decrypt that message. I
would suggest you to verify if you don't have a private key installed on
your server testing machine. Try with some certificate that you never
installed on that machine and send the encrypted message from another
machine so you may be sure that on the server side you are not using the
private key associated to the public key you are using to encrypt on the
client side.

Signature
Hernan de Lahitte
http://clariusconsulting.net/hdl
> Hi,
> I'm working on a small client/server application which communicates using
[quoted text clipped - 21 lines]
> Thanks
> John Wieland jwieland@spyrus.com.au
John - 29 Apr 2005 02:36 GMT
Thanks Hernan,
When I tried encrypting a message using a Public Cert for which I could not
possibly access the private cert (another staff member in a far off location)
the encryption works as expected.
I guess there must be some issues with Microsofts Certificate Store or
myself not deleting keys correctly. Any ideas what I may be doing wrong? I
usually just go into Certificate Store through mmc and delete the private
certificates from there using right-click->delete.
Cheers
John
> As you stated right, you need only the public key to encrypt the message and
> the private key associated to that public key to decrypt that message. I
[quoted text clipped - 30 lines]
> > Thanks
> > John Wieland jwieland@spyrus.com.au