As I see, the XML document has reference to schema which is on internet
"xsi:schemaLocation="http://www.w3.org/2000/09/xmldsig#
xmldsig-core-schema.xsd".
Maybe this is problem.
regards
Matej
Jorge Ortiz Claver wrote:
Hi,
I have a XML DSIG enveloping document I need to validate against its
Hello,
I tested xml signature with URI="file:///work/test.txt" with C++ XMLsec
library and works fine. With Java XMLsec library doesn't work.
What is wrong, or I am doing something wrong?
regards
Matej
Matej Kafadar wrote:
Hello,
which URI reference is correct?
example:
Hello,
which URI reference is correct?
example:
I have file in absolute path "c:\work\test.txt"
XMLsec couldn't find the file, if URI looks like
URI="file:///work/test.txt".
The exception is "Original Exception was java.io.FileNotFoundException:
\\work\test.txt (The network path was not found)"
We changed generation of encryption key,
old:
KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
keyGenerator.init(128);
Key ek = keyGenerator.generateKey();
new:
KeyGenerator keyGenerator = KeyGenerator.getInstance("DESede");
Key ek = keyGenerator.generateKey();
now it works.
Milan Tomi
I tried these two examples, and the problem is that C++ differently
stores encrypted symetric key. It is byte rotated (first byte is last
byte, last byte is first byte, etc).
In file toenc-cpp-enc.xml I changed
8oxqYvaRsO9lM0pvbxAZ522imGXETq/bRP2uts5SHCm1tNwl+6LKgUcIAtDQT2yNykCdJEWoTrHx
jo5IxE
Hi,
When I create or verify detached XML signature with URI="file:/doc.txt",
Java XMLsec library sign file in path "c:/doc.txt". Can URI hold relative
path? How URI would look like to XMLsec verify doc.txt which is in the same
folder that is signature?
Thanks
matej
String toSign is a absolute path to XML file to sign. File is attached.
regards
Matej
> > Part of code:
> >
> > Document doc = db.parse(toSign);
> > Element root = doc.getDocumentElement();
> > XMLSignature sig = new XMLSignature(doc,
> > null,XMLSignature.ALGO_ID_SIGNATUR
Part of code:
Document doc = db.parse(toSign);
Element root = doc.getDocumentElement();
XMLSignature sig = new XMLSignature(doc,
null,XMLSignature.ALGO_ID_SIGNATURE_RSA);
root.appendChild(sig.getElement());
Transforms transforms = new Transforms(doc);
transforms
Hi,
Milan posted two signed (enveloped) XML files signed in java (see
attachment). One is with stylesheet and other without it. Both signatures
are valid verified by java libraries. File "test_with_stylesheet_java.xml"
is not valid verified by C++ libraries.
Is XML signature "test_with_styleshee
Hi,
If you hava a signed XML file (below) WITHOUT SCHEMA, is siganture (focus on
id) valid or invalid?
http://www.w3.org/2000/09/xmldsig#";>
... some nodes (doesn't matter)...
http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
10 matches
Mail list logo