signing using RSA private key Windows cryptographic API

I am working on a metro app and working on signing an Oauth request for a Google application. I am unable to Import my keypair properly into the JS code . The same problem has been asked here but still unresolved- I have my key in the format "---START PRIV KEY---MIC898 blah blah ----END PRIV KEY--".

When I try to import it into my code using ImportKeyPair function, I get an exception that

"there was a problem at time of encoding or decoding".

I am getting my key using openSSL "rsagen" tool which I believe gives a pair of Private and Public key.


Try converting your PEM formatted RSA keys to DER first using openssl rsa <arguments>.

Need Your Help

Android PreferenceActivity and dialog fragments

android actionbarsherlock preferenceactivity

The app I am developing has an activity that extends SherlockFragmentActivity. I would like to use the preferences api in order to easily add preferences to the activity. Since I would like to supp...

Need help with table view detail view. I can't seem to write values to the UILabel's text property?

iphone objective-c uinavigationcontroller uitableview

I have a TableView setup as my "root view controller" and a detail view controller called "DetailController" to allow me to display the detail view for what the user selects in the main table view....