Hi, I am trying to do something similar to this and am finding very little useful information. Any help appreciated!
I am trying to sign and encrypt data using X509 Certs in .Net 2.0 and send the info to a Java webservice.
I need to do the following:
Sign the data with the my private key from my cert and get the signature with SHA1 with RSA format
Encrypt the data using AES with a random generated key
Encrypt the random gen AES key using the recipients public key
Send the webervice the signed, encrypted data and the signature
I have succeeded in encrypting and decrypting the data using the certs. The problem I have is getting the signature from my cert's private key. Any help on how to achieve this?
Thanks
Stephen