Signing Data using a private key

Signing Data using a private key

Post by Alan Fishe » Wed, 15 Jun 2005 10:40:17


I am attempting to use a private key from a digital certificate that I have
installed on my pc to sign some data (a dime attachment) which is sent to a
WebService. The scenario is very similar to the one explained in
http://www.yqcomputer.com/

I wish to use the .Net framework to acheive this. I have looked at the WSE
2.0 sample code and have successfully located the certificate in the store
but am now struggling with signing the data.

Can someone point me in the right direction? Sample code would be much
appreciated

Also, how does the destination user actually get the public key?

TIA
Alan
 
 
 

1. Raw DSA private key data -> Private Key Blob

2. Help with the 'Signing data with your private exchange key' dialog

Hi

I'm using certificates with private keys and the high security options set.
When my application signs data the user is prompted for their password for
the key - this is good. I do however have two problems arising from the
'Signing data with your private exchange key' dialog that pops up:

1) It's offering the option of remembering the password as a checkbox, I'd
like to hide that option, I don't want users being offered that option. Can
I hide the option? Or can I put up my own password prompt and send the
password to the API?

2) When the dialog is being displayed, it's pumping messages, so the
application performing the signing operation receives messages, which is
causing problems with reentrancy. I'd like the dialog to be modal, in a
different thread or something that prevents it pumping messages for the
application.

Help would be greatly appreciated.

Thanks
Mathew

3. CAPICOM sign file directly using spc store and pkv private key file

4. convert file having private keys( private.key) to .pvk

5. How to get a private key and a public key in a "key exchange key pair"?

6. puttygen: Couldn't load private key (unable to create key data structure)

7. Unable to unwrap a symmetric key using the private key of an X.509

8. WSE600: Unable to unwrap a symmetric key using the private key of.

9. WSE600: Unable to unwrap a symmetric key using the private key

10. Unable to unwrap a symmetric key using the private key of an X.509

11. WSE600: Unable to unwrap a symmetric key using the private key of

12. about private key in CA's self signed certificate!!!!

13. Cert for use with CAPICOM signing and backup the private key

14. Signing hash with private key