Re: SignedXML: create a key from a certificate?
From: Ivan Medvedev [MS] (ivanmed_at_online.microsoft.com)
Date: 09/26/03
- Next message: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Previous message: Hogan, Mark J.: "Re: How to? VB6 CryptoAPI RC2 Encryption and .NET RC2CryptoServiceProvider Decryption and Vice Versa"
- In reply to: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Next in thread: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Reply: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Reply: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 25 Sep 2003 17:40:56 -0700
There is also an upcoming PDC which may reveal some interesting developments
in this area in v2.0 ;-)
--Ivan
http://blogs.gotdotnet.com/ivanmed
This message is provided "AS IS" with no warranties, and confers no rights.
"Michel Gallant" <neutron@nspxistar.ca> wrote in message
news:uc4T1G6gDHA.2456@TK2MSFTNGP12.phx.gbl...
> There is a forthcoming article at MSDN Security Center which will
> discuss this, and many other techniques for accessing CryptoAPI
> key containers, Certificate public keys etc.. for use within managed
> code.
> Stay tuned :-)
>
> - Michel Gallant
> MVP Security
>
> "Ivan Medvedev [MS]" <ivanmed@online.microsoft.com> wrote in message
> news:OfDDFi4gDHA.3700@TK2MSFTNGP11.phx.gbl...
> > Felipe -
> > in the released versions (v1.0 and v1.1) of .NET Framework it is not
> > possible to directly derive a key from a certificate. You have to
initialize
> > a key object yourself, for example by reading it from a named key
container.
> > --Ivan
> > http://blogs.gotdotnet.com/ivanmed
> > This message is provided "AS IS" with no warranties, and confers no
rights.
> >
> >
> > "Felipe Blin" <felipeblin@hotmail.com> wrote in message
> > news:O7WGjo2gDHA.2184@TK2MSFTNGP10.phx.gbl...
> > > HI,
> > > I am trying to use signedXML with a certificate but I
> > > have some doubts.
> > > How can I generate a RSA key from a X509certificate?
> > > In the SignedXML sample in .NET you create a key from
> > > scratch :
> > > Dim Key As New RSACryptoServiceProvider()
> > > signedXML.signingkey = key
> > > and after that
> > > Dim keyInfo As New KeyInfo()
> > > ' MSCert As X509Certificate
> > > keyInfo.AddClause(New KeyInfoX509Data(MSCert))
> > > ' Add the KeyInfo object to the SignedXml object.
> > > signedXml.KeyInfo = keyInfo
> > > But the idea is to sign the document with the certificate!
> > > Isn't it?
> > > Shouldn't I create the key from the certificate? or
> > > Is signedXML object able to create the key internally?
> > > Thanks for your help
> > > Felipe BLin
> > >
> > >
> > > .
> > >
> > >
> >
> >
>
>
- Next message: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Previous message: Hogan, Mark J.: "Re: How to? VB6 CryptoAPI RC2 Encryption and .NET RC2CryptoServiceProvider Decryption and Vice Versa"
- In reply to: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Next in thread: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Reply: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Reply: Michel Gallant: "Re: SignedXML: create a key from a certificate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]