Home All Groups Group Topic Archive Search About

Newby question on digital signature

Author
24 Mar 2006 7:00 PM
Ruben
Hi, I need to digitally sign an XML document. I already hashed the string to
be signed, but my problem is the private key is provided to my user in a
"*.key" file (PKCS8), so my question is: how should I extract the private key
from the file, in order to create the instance of the
system.security.cryptography.rsa ?

Thanks in advance.

Author
24 Mar 2006 7:19 PM
Mitch Gallant
Is that an *unencrypted PKCS#8 PrivateKeyInfo or is it
an ENcrypted PKCS#8  EncryptedPrivateKeyInfo ??
Better, how was it generated?

- Mitch Gallant
    JavaScience Consulting
    www.jensign.com

Show quoteHide quote
"Ruben" <Ru***@discussions.microsoft.com> wrote in message news:B7DEA692-326F-4D6A-B539-5BD0953DA852@microsoft.com...
> Hi, I need to digitally sign an XML document. I already hashed the string to
> be signed, but my problem is the private key is provided to my user in a
> "*.key" file (PKCS8), so my question is: how should I extract the private key
> from the file, in order to create the instance of the
> system.security.cryptography.rsa ?
>
> Thanks in advance.
Author
26 Mar 2006 10:43 PM
Ruben
It's not encripted

Show quoteHide quote
"Mitch Gallant" wrote:

> Is that an *unencrypted PKCS#8 PrivateKeyInfo or is it
> an ENcrypted PKCS#8  EncryptedPrivateKeyInfo ??
> Better, how was it generated?
>
>  - Mitch Gallant
>     JavaScience Consulting
>     www.jensign.com
>
> "Ruben" <Ru***@discussions.microsoft.com> wrote in message news:B7DEA692-326F-4D6A-B539-5BD0953DA852@microsoft.com...
> > Hi, I need to digitally sign an XML document. I already hashed the string to
> > be signed, but my problem is the private key is provided to my user in a
> > "*.key" file (PKCS8), so my question is: how should I extract the private key
> > from the file, in order to create the instance of the
> > system.security.cryptography.rsa ?
> >
> > Thanks in advance.
>
>
>