Bug in XML signature??? Are there users than CAN answer????


I already posted two items - but no one seems to have the knowledge to help 
me out...
In the mean time I found out the following:

My existing signatures are testet using 

                SignedXml sXml = new SignedXml(licenses);
                RSA csp = RSA.Create();
                sXml.SigningKey = csp;
                if (sXml.CheckSignature())
                    m_SignatureState = Signature.Valid;
                    m_SignatureState = Signature.Invalid;

When I create a new signature, mehtod CheckSignature() suddenly returns 
FALSE.... I used the same code as the valid signature!!! 

I need to include KeyInfo while signing and MUST change to
                //sXml.SigningKey = csp;
                if (sXml.CheckSignature(csp))
                    m_SignatureState = Signature.Valid;
                    m_SignatureState = Signature.Invalid;

in order to get it working again.

Old signatures return TRUE on 
                sXml.SigningKey = csp;
                if (sXml.CheckSignature())
                    m_SignatureState = Signature.Valid;
                    m_SignatureState = Signature.Invalid;

New signatures must have KeyInfo included and return TRUE on
                if (sXml.CheckSignature(csp))
                    m_SignatureState = Signature.Valid;
                    m_SignatureState = Signature.Invalid;

Can anybody tell me why???

Can anybody tell me how to implement a signature WITHOUT <KeyInfo> in the 
XML file???

Please help me out,
Hans1 (87)
12/7/2007 11:24:01 AM
dotnet.xml 7266 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 17


Similar Artilces:

Can not access Public Folders
I'm currently on Windows 2000 server SP4 with exchange 2000 sp3. When I try to access any of my public folders using the exchange system manager I'm getting the following error: The connection was refused. Ensure that your HTTP Virtual servers are all started and check the the WWW service is running. ID no: c103b401, Exchange System Manager. The two KB articles (319240 & 313721) talk about the Exadmin folder needs to be on port 80, which it is and the other article talks about permissions on specific folders which are correct also. I'm able to access the folders fr...

namespaces and protected static members VC .NET bug?
I found bug when use namespaces in mfc application. When I wrote DECLARE_MESSAGE_MAP/BEGIN_MESSAGE_MAP in base (CDialog-derived) class A and in class B : public A (A and B in different namespaces). I narrowed this problem to simple peace of code: class A { protected: static int f; static int *p; public: A() {} ~A() {} }; int A::f = 1; int *A::p = NULL; namespace some { class A : public ::A { static int f; static int *p; public: A() {} ~A() {} }; int A::f = 2; int *A::p = &::A::f; // this line produces error } This code does not work, VC compiller said: error C2248...

Trouble validating XML w/ XSD.
I've got the some code to try and validate some xml. Against my schema, the "Good" xml (below) produces a couple of warnings, which I don't care about. The "Bad" xml (also below), produces warnings as well, but *should* be producing errors. The XML validator at http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx reports that the "Good" xml produces warnings, but the "bad" xml produces errors, which is what I want to reproduce in my code. The code and all the xml/xsd are below. Any help would be greatly appreciated! Jonas spicyj2k@gma...

User Form Security Question
Hi, I'm creating a form, which onces completed transfers the data over to the spreadsheet. But the guys in work don't really pay much attention to what they have entered , so i was wondering is there any way to make the user double check every entry? I was thinking, once the user clicks ok, a msgbox would appear giving the user the value they entered, click ok if correct or cancel to amend. Is there a easy way to do this? Cheers. -- harpscardiff ------------------------------------------------------------------------ harpscardiff's Profile: http://www.excelforum.com/mem...

Transactions By Category Report Bug (Money 2005)
All, I'm experiencing a problem that I can't seem to work around and I hope somebody can help me out. I ran the transaction by category report and selected category A. I then went to the category setup screen and moved category A into B. I then went back to the transactions by category report and this time it won't open. Instead, it acts like it's going to open, but then immediately reverts back to the report menu screen. I'm pretty sure it's doing that because the last selected category the report ran was for category A and that category doesn't exist anymore...

reading Image Property for button from a XML
Hi, I have a query regarding reading Image Property for button from a XML file . I read XML files to Generate Screens using System.Windows.Forms.Controls .The XML file is read and properties are set using Reflection a sample representation of it is given below <Control type="System.Windows.Forms.Button, System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="Button2"> <Property name="TabIndex" value="6"></Property> <Property name="Size" value="75, 23"></Property&...

Empty GAL with some users
I have a problem that I hope someone here can help me with. I installed Exchange 2000 on a Windows 2000 server and the server decided to eat it's own system drive before I was able to get a system state saved off. I reloaded the OS and tried to reinstall Exchange and it told me to do use the /disasterrecovery switch. That did some stuff, but it didn't replace the Exchange services. I couldn't find any place that I could reinstall the exchange services. I had to do a manual uninstall as described in the MS KB article because the exchange server wouldn't uninstall via the...

Images do not display in signature file for new emails
I created a SIGNATURE file to automatically be included in all NEW EMAILS I create. I have an IMAGE (Clipart) that I have embedded in the signature, but it will not display. I AM able to see images in my email. I can MANUALLY insert the image and it displays fine. When I look at the properties for the placeholder for where the image should display (there is a rectangular box with a RED X), Outlook is trying to load the image from a folder in the Documents and Settings/"user name"/Application Data/Microsoft/Signatures//"user name"_files folder. The file IS THERE,...

how can I replace ";" with ";+alt+enter"? hellp
the function "find and replace" can`t do this. please help me ppl Hi Use Find / Replace and in the 'With' box type Alt+010. That is: hold the Alt key and type 010 on the numeric keypad. Andy. "excellent" <andrey_22_1980@msn.com> wrote in message news:1CBDB84F-A8BE-4563-A2C7-5C291E36D061@microsoft.com... > the function "find and replace" can`t do this. please help me ppl ...

exchange user mailbox not created
Hi guys, Have exch 2003 on win2003 svr in new AD forest. New user is created and "Create exchange mailbox" is selected for new user. Try to activate mailbox from outlook but name is not listed in GAL. Have restarted RUS, - no change. Failing an exchange server restart is there any way to tell AD / exchange to get its act together and create the mailbox. The properties of user does not display an smtp email address. Any help would be greatly appreciated. Regards Peter pls following the KB 286356 http://support.microsoft.com/kb/286356/en-us -- Jammyù�ٴ� "cumis...

BUG? Outlook 2003 Not Responding
Hi all, I'm currently running Outlook 2003 (11.5608.5606) along with Active Sync 3.7 (Build 3083). I have the *Hide When Minimized* option set Outlook (thanks MS!) Since my upgrade, I've noticed the following behaviors: When my pocket-pc is disconnected/off: If I *minimize* Outlook, it hides itself in the system tray, and can (almost) always be restored. If I *close* Outlook closes, and can be restarted. When my pocket-pc is connected/on: If I *minimize* Outlook, it hides itself in the system tray, and can (almost) always be restored. However if I *close* Outlook Outlook minimizes ...

Can I parameter query multiple fields in the same table?
I am setting up a database for our search company that is filled with information on our clients. I need to be able to track the organizations to which our clients are applying. This could be multiple organizations at one time. Then, I need to be able to list which clients have applied to a certain company. I have set up a dropdown list of the companies to make entering them easier for each client. However, the only way I know to do it now is to set up about 10 separate yet identical dropdown fields in each client's record. then, as they apply with different companies, I simply add t...

Signatures #4
I have several signatures that I use depending on the recipients of the message. Is there a default macro for fast change of signatures or something rather than having to go in and reset the default signature for new messages before I type it every time it needs to be changed? Thanks for any help. What version of Outlook are you using? Note: this group does not support Outlook Express. Also, are you using Word as the mail editor? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. After searching google.groups.com and finding no answer...

how I can format a number like hundreds, thoudsands
I am from INdia and need to format the numbers in Indian style like comma sepration based on hundreds, thousand pattern Very first hit on Google searching for Format and Indian:- From a Google search here is a reply by David Richie to the same question in January If you have Excel 2002 or later look up bhattext in help. Otherwise the following format might help you [>=10000000]##\,##\,##\,##0.00;[>=100000]##\,##\,##0.00;##,##0.00 (This format separates groups for India/Thailand, format valid for positive numbers up to 99,99,99,999.99 or 999,999,999.99) in Excel XP see function Bh...

Can't format cell color/text color in Office Excel 2003 in files .
Just loaded Office 2003 and now cannot change cell color or text color in Excel sheet created in Office 2000. Cells are not protected or locked and file is not read only. Other alterations such as font changes are possible. Any ideas? Thanks! ...

OL2003 Signature Bug?
I have four pop-mail accounts in a single profile. I'll call the Accounts A, B, C, and D. "A" is the default account. In OL2003, you are able to create a different signature for each account. I have created "New Message" and "Reply-to/Forward Message" signatures for two of the accounts (A and C). When creating a new message, the signature for A appears correctly by default. If I switch the "send from" account to C, the signature for C replaces the signature for A. This is expected. If instead, I switch to accounts B or D, the signature...

Money 2006 net worth bug
I have noticed that one of my net worth over time favorite reports refuses to load. If I watch the CPU, it appears that $ is in an infinite loop with the load bouncing back and forth between 50 and 80%. But the really amusing thing is this: during the loop if I select "custom date", change either the start or stop date (move either to a new date, or just touch one - change a date and move it back) and select the APPLY button, the load will converge. If you select the OK button, the load will not converge. I have saved a net worth report that converges and attempted to reload...

Can not access system settings for "Organization"
Hi, since I have uppgraded to CRM 3.0 I can not access the system settings for the organization. I get the message "Please contact systema administrator ...." However I can not find any trace on how to resolve the issue. Does anyone have advice? Mattias Hello, Mattias. I have exaltly the same behaviour on my CRM3 for SBS 2003 Premium If you solve your problem. I wil be happy for the solution. Thank you Elisa "Kyhlan" <Kyhlan@discussions.microsoft.com> a �crit dans le message de news: A694B1A2-751A-4EAE-B86F-0FBCA3D728F5@microsoft.com... > Hi, > si...

How to read certain node from xml
I want to read certain node from xml file by the ID. It means taht I know the ID of person, and I want read all data that person (eg: name,mail...). persons.xml <?xml version="1.0"?> <persons> <person> <id>1</id> <name>Tom</name> <mail>tom@tech.com</mail> </person> <person> <id>3</id> <name>John</name> <mail>john@it.com</mail> </person> </persons> How to read this data (c++) and write to variables eg: strName,strMail Thanks I am not sure how to do ...

VC 6.0 can't handle use an include directory that has spaces in na
i have an environment variable, BUILPATH which has a value of "C:\app build path\common". in a VC++ 6.0 project I use the BUILPATH variable to point to where my include directory is located. i then have a #import statement in the stdfx.h where i just use the tlb's file name. however when i go to compile the project i get : command line warnings D4024 : unrecognized source file type 'build' command line warnings D4024 : unrecognized source file type 'path\common\include /I C:\app' command line warnings D4024 : unrecognized source file type 'build' c...

Is this a bug or not?
I replied to an email that was archived in Outlook 2007. The 'sent' copy was placed in the archived sent folder instead of the one in my personal folders. Is this normal or a bug? Is there anyway that I configure responses to archived 'mails to be put in the current sent folder? TIA. Cheers, Guy ** Stress - the condition brought about by having to ** resist the temptation to beat the living daylights ** out of someone who richly deserves it. "Dr Teeth" wrote in message news:db8si3lpuejhnpm3luacpu2rkkaef66stt@4ax.com... > I replied to an email that was archiv...

Can Grow not working?
Hi All, I have 2 memo fields in the page header of a report. Both fields are set to Can Grow = Yes But they don't grow!! Keep cutting anything after the 1st line of info off. Does anyone have any suggestions? I have tried cutting and pasting into a new report but it not working. Kirstie The page header and page footer cannot grow. The controls in the header (or footer) can grow (or shrink), but only up to the size of the header. So if the header (or footer) is one line high, the controls can only be one line high ( or at least that is all that will display). -- John Spencer...

Problem with Domain user as local administrator
Hello, I have a problem with the authentication of users to access services. I have a domain with Windows 2008 R2 and all servers are W2008 R2. I want to add a domain user as local administrator into the server and not appears on the list, but says if it is. If I logon on that server with the domain user works fine but does not have administrator access because some complement is not allowed. I turned off the UAC and so the server can access. The problem comes when the user wants to access such a SQL and indicates that the domain is not trusted. It does not seem to ha...

Access 2007: bug? quick filter list is sometimes empty
Access 2007 has a great new feature which allows to easily filter by selecting different values from a drop down box on top of each column. However, sometimes the list of values simply is EMPTY in some columns. It seems that this has to do with the complexity of the underlying query. Does anyone know how to circumvent this? Or is it simply a bug? Kind regards Georg When the list of unique choices gets too big they don't show. You have some control over this office button/access options/current database/Filter lookup options (look at bottom of screen). It takes tim...

Replies and signature
I have made a signature in a word table with logos etc and copied it into my signature. This works fine with new messages but when I reply to a message the message I'm replying to is shown to the right of my signature and not below as before How do I stop this please. Also some messages received need to be changed to html so that my reply signature looks correct can I automatically convert all messages to be received as html? Thanks Simon Outlook can't convert plain text to HTML automatically. You'll need to do it before replying - however we don't recommend it...