Joseph Bonello wrote:
My problem is that
I ALSO want to sign the document with the PUBLIC key of the other person.
However, when I try to change localPrivateKey to a Public Key, I get an
exception that it needs a PrivateKey. Is it possible to work it out that
way?
That's just not how a digital signature is done, so I'm glad the APIs are smart enough to prevent you from being a crypto abuser <smile>. Since a public key is public and anybody could do what you are doing, there is zero benefit from doing it. It would add nothing but processing time. Do you work for the TSA?

You sign with private keys, and you can encrypt to another using their public key, but you don't encrypt with private keys or sign with public keys.

David

Reply via email to