473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

"Unknown tranform" with enveloped-signature in WSE1.0SP1

I am trying to check a SOAP signature with WSE 1.0 SP1, but with a
certain transform I only get an "Unknown tranform" [sic] exception.

The SOAP signature is like this:

<ds:Signature>
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference Id="" URI="#TGSS01">
<ds:Transforms>
<ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>[Omitted...]</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
[Omitted...]
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>
[Omitted...]
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>

Java and Exchanger XML Editor have no problem to validate the
signature.

The exception is:
"Unknown tranform has been encountered."
at Microsoft.Web.Services.Security.Reference.LoadXml( XmlElement
value)
at Microsoft.Web.Services.Security.SignedInfo.LoadXml (XmlElement
value)
at
Microsoft.Web.Services.Security.SignedXmlSignature .LoadXml(XmlElement
value)
at Microsoft.Web.Services.Security.SignedXml.LoadXml( XmlElement
value)
at es.map.xml.Firma.ValidarFirma(MensajeSOAPXml mensaje) in
C:\\MapBeta2\\Codigo\\NET\\Fuentes\\Librerias\\es. map\\xml\\Firma.cs:line
151
at es.map.xml.soap.MensajeSOAPXml.ValidarFirma(Mensaj eSOAPXml
mensaje) in
c:\\mapbeta2\\codigo\\net\\fuentes\\librerias\\es. map\\xml\\soap\\mensajesoapxml.cs:line
359
at PruebaValidarFirma.Prueba.Main(String[] args) in
c:\\mapbeta2\\codigo\\net\\fuentes\\beta2\\pruebav alidarfirma\\prueba.cs:line
32

Reading around, I tried to make WSE recognize the enveloped-signature
transform by adding this to machine.config:

<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass
envsigTran
=
"System.Security.Cryptography.Xml.XmlDsigEnveloped SignatureTransform,
System.Security, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
/>
</cryptoClasses>
<nameEntry
name="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
class="envsigTran" />
</cryptoNameMapping>
</cryptographySettings>
</mscorlib>

But it seems useless. I have also tried
envsigTran
=
"System.Security.Cryptography.Xml.XmlDsigEnveloped SignatureTransform,
System.Security" and
"System.Security.Cryptography.Xml.XmlDsigEnveloped SignatureTransform,
System.Security.Cryptography.Xml", but to no avail.

In http://msdn.microsoft.com/downloads/list/wse1readme.htm I read:
# WSE SP1 is now more restrictive in the set of algorithms that it will
accept when receiving an XML Signature:

* The CanonicalizationMethod for the Signature must be either XML
Exclusive Canonicalization or XML Exclusive Canonicalization with
Comments ("http://www.w3.org/2001/10/xml-exc-c14n#" or
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments").
* The Transforms collection for an individual Signature Reference
can only include XML Exclusive Canonicalization, XML Exclusive
Canonicalization with Comments and XPath
("http://www.w3.org/TR/1999/REC-xpath-19991116",
"http://www.w3.org/2001/10/xml-exc-c14n#" or
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments").
* The Digest method for an individual Signature Reference can only
be SHA-1 ("http://www.w3.org/2000/09/xmldsig#sha1").

that seems to deny the possibility of recognizing the enveloped
transform.

Do you have some suggestion?

Thanks in advance.

--
David Mediavilla

Nov 12 '05 #1
0 1498

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
3
by: Marcus | last post by:
I'm running into a situation that has me adding a value of "Unknown" to a reference table. I am being pulled between two trains of thought, and was curious to get other's input on in. I give an...
0
by: wilsonchan1000 | last post by:
There is a note regarding this error in UDB. I eventually found a solution and want to share with all or you. Problem occur with connect to db2 server: SQLCODE : -332 SQL0332N There is no...
1
by: imw8n4u | last post by:
I need to create combo box that lists unique values from a table and limit the selection to this list. However, I also need to add "UNKNOWN" as a valid selection even though it is not in the table...
2
by: John Baker | last post by:
Hi: I have two systems, one a W98 and the other XP Home. I have Access 2000 installed on both, and have run into a difference in the way the two behave. I have a table on which I wish to reset...
3
by: Ed L. | last post by:
On 7.4.6, is there any problem with defining one column of a view to be a string literal? For example ... $ psql -c "create view fooview as select 'bar' as footype" WARNING: column "footype"...
0
by: Shaun | last post by:
Hi all, I'm trying to implement a custom session handler that writes session data to a MySQL database. It works fine about 99% of the time. Trouble is, at random intervals, I get entries like...
9
by: Klaus Johannes Rusch | last post by:
IE7 returns "unknown" instead of "undefined" when querying the type of an unknown property of an object, for example document.write(typeof window.missingproperty); Has "unknown" been defined...
2
by: oopaevah | last post by:
I am using the Microsoft.XMLHTTP object to make server requests ie; ajax. This is working 99% of the time but occasionally it will freeze at the server for 5 minutes and then raise a javascript...
7
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.