SignedXML类:不支持Canonical XML 1.1? [英] SignedXML Class: Canonical XML 1.1 not supported?

查看:163
本文介绍了SignedXML类:不支持Canonical XML 1.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我是XMLDigital Signature的新手。

我需要指定 http://www.w3.org/2006/12/xml-c14n11 CanonicalizationMethod中的算法是Canonical XML 1.1版

参考文献中未提及此算法( http://msdn.microsoft.com/en-us/library/system.security.cryptography。 xml.signedinfo.canonicalizationmethod(VS.85).aspx )当我使用它时会抛出一个错误,例如"无法通过URI创建指定的转换 http://www.w3.org/2006/12/ xml-c14n11 "

其实我用 SignedXml.XmlDsigC14 NTransformUrl( http://www.w3.org/TR/2001/REC-xml-c14n-20010315 )它有效,但这是Canonical XML版本1.0

¿ 1.0和1.1之间的差异是否会使xml签名无效如果我将使用1.0并且接收器期望版本1.1如果signes的xml是这样的:< x:NoMatter attOne =" characters" attTwo = QUOT;字符" attThree = QUOT;字符" attFour = QUOT;日期时间" /> ?

我将感谢任何建议

解决方案

微软目前不支持Canonical Xml 1.1。

感谢,
卓娅

Hi all

I'm newbie with the XMLDigital Signature.

I need to specify the http://www.w3.org/2006/12/xml-c14n11 algorithm in the CanonicalizationMethod wich is Canonical XML version 1.1

This algorithm is not mentioned in the reference (http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.signedinfo.canonicalizationmethod(VS.85).aspx) and when i used it throws an error like "Cannot create specified Transform by URI http://www.w3.org/2006/12/xml-c14n11"

Actually i'm using SignedXml.XmlDsigC14NTransformUrl (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) and it works, but this is the Canonical XML version 1.0

¿does anyone knows another way of use the URI of version 1.1?, I guess i need to handle this algorithm myself as the specification establish.

¿does the difference of 1.0 vs 1.1 could make xml signatures invalid if i'll use the 1.0 and the receiver expects version 1.1 if the xml that signes is like this: <x:NoMatter attOne="characters" attTwo="characters" attThree="characters" attFour="dateTime" /> ?

i'll appreciate any suggestion

解决方案

Microsoft does not support Canonical Xml 1.1 at this point.

Thanks,
Zoya


这篇关于SignedXML类:不支持Canonical XML 1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆