問題タブ [c14n]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - C# での XmlStar の使用
いくつかの xml ドキュメントを正規化しようとしています。ご覧のとおり、CMDコマンドを実行してXmlStarを使用することで実現できます
私の質問は、XmlDsigC14NTransform クラスを使用して C# で同じ結果を達成できますが、RSA 署名なしで実現できますか?
java - Java c14N Canonicaliser - 属性名の順序が間違っています
Java c14n Canonicalizer は、正規化された XML アサーションの属性の順序を切り替えています。
カノニカライザーは、正規化後に次の文字列を出力しています。
<saml:Assertion ID="_llhn27aoVN60ug" IssueInstant="2021-11-26T22:10:37.067073Z" Version="2.0" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion
ただし、カノニカライザーのドキュメントによると、xmlns:saml 属性は SAML: アサーション ID 属性の前に配置する必要があります。
この属性の順序の変更により、ダイジェスト値の正確な計算が妨げられています。
次のカノニカライザーを使用しています。
org.apache.xml.security.c14n.Canonicalizer
これを修正する方法について誰か考えがありますか?