SignedXml fails under .NET 2.0 Beta
From: Gabriel (gfogante_at_gmail.com)
Date: 03/05/05
- Previous message: Les P: "Re: IIS Authentication Problem?"
- Next in thread: Gabriel: "Re: SignedXml fails under .NET 2.0 Beta"
- Reply: Gabriel: "Re: SignedXml fails under .NET 2.0 Beta"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 5 Mar 2005 13:34:54 -0800
Hi,
I'm using the following code to check signed xml files:
SignedXml signedXml = new SignedXml();
// http://support.microsoft.com/default.aspx?scid=KB;EN-US;322371
CspParameters cspParams = new CspParameters();
cspParams.Flags = CspProviderFlags.UseMachineKeyStore;
RSACryptoServiceProvider rsaPublicKey = new
RSACryptoServiceProvider(cspParams);
rsaPublicKey.FromXmlString(xmlPublicKey);
KeyInfo keyInfo = new KeyInfo();
keyInfo.AddClause(new RSAKeyValue(rsaPublicKey));
signedXml.KeyInfo = keyInfo;
XmlNodeList nodeList = licenseData.GetElementsByTagName("Signature");
signedXml.LoadXml((XmlElement)nodeList[0]);
return signedXml.CheckSignature();
This code works great under .NET 1.x and it FAILS under .NET 2.0 Beta.
Do you know why?
Thanks in advance.
PS: xmlPublicKey contains the public key of course.
- Previous message: Les P: "Re: IIS Authentication Problem?"
- Next in thread: Gabriel: "Re: SignedXml fails under .NET 2.0 Beta"
- Reply: Gabriel: "Re: SignedXml fails under .NET 2.0 Beta"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|