Questions tagged [xades4j]

The XAdES4j library is an high-level, configurable and extensible Java implementation of XML Advanced Electronic Signatures

https://github.com/luisgoncalves/xades4j

132 questions
5
votes
1 answer

org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR

I've been looking way too long at this and can't figure out what I'm doing wrong. So, I'm trying to generate a Xades signature for some content. Unfortunately I always run into the same error: "HIERARCHY_REQUEST_ERR". This is my XML document:
testuser
  • 952
  • 4
  • 17
  • 34
4
votes
1 answer

Is there an example of how to do a XAdES-BES enveloped signature with the XAdES4j library?

I'm trying to use the XAdES4j library to sign xml with an enveloped signature. From everything I've read it looks like it is possible to do exactly what I'd like to do, but I've not been able to find a simple example to help me to understand the…
rjj
  • 53
  • 1
  • 5
3
votes
0 answers

Java keytool does not find entries in PKCS12 storage on Kubuntu 18.04

I have the PKCS12 storage (password is password, don't worry for security, it is public test certificates) . The storage is not empty according to openssl: nk@KubNk:~$ openssl pkcs12 -info -in /home/nk/tmp/test4.p12 -passin pass:password …
3
votes
0 answers

Android: Xades URI error

I am working on a xades-bes type signature with Android Studio. The library that I use is not xades4j. My country's government provided another library jor java and I am using it. I am trying to sign a XML file. I have a XML file for my xades…
Sefa Katirci
  • 41
  • 1
  • 6
3
votes
1 answer

Create a xades.sign with an external sign

I need to install a xades library in a web-application, this webapp will produce xades documents using remote-sign certificates. The private key of this certificates are placed on a remote HSM device, so if i have to sign (i mean produce a RSA of a…
Michele Bortolato
  • 707
  • 2
  • 11
  • 27
3
votes
1 answer

Validate XADES signature with XADES4j

We would like to create a java web application which verify "XADES" signature, this application should take two files : the original file and his detached signature. I'm using the XADES4j library which is great project. with XADES4j is there a way…
Khalilos
  • 721
  • 2
  • 9
  • 17
3
votes
0 answers

Incorrect reference in signature

I have another problem with Counter Signature. This time I forced it to work... almost. Bellow is the copy of the Signature:
3
votes
1 answer

Missing CountersignedSignature type in xades4j

I noticed in my document countersigned with xades4j there is no Type="..CountersignedSignature" in the Reference of countersigned signature. The same is in xades4j unit test in document.signed.bes.cs.xml. On the other hand, in…
2
votes
1 answer

PKCS#11 library not found on 64bit Windows

In my job I have a requirement to sign XML file with certfifcate from SmartCard. Everything works fine but on 32bit Windows 7 VM. The problems occur when I try to use the same code on 64bit Windows 10. I get error that "PKCS#11 not found" and "no…
Artur
  • 125
  • 1
  • 2
  • 6
2
votes
2 answers

Signing XML with XAdES-EPES in Java

I'm currently working on some legal requirements for my country (electronic invoicing) but I'm stuck on the signing part, here the background: The government provides every user with a .p12 certificate file Once an XML is generated, it has to be…
2
votes
1 answer

different between RSACryptoServiceProvider and RSAPKCS1Signatureformatter

i am trying to get the difference between class RSAPKCS1Signatureformatter and RSACryptoServiceProvider as when i sign data using RSAPKCS1Signatureformatter it returns different signature value than signing using RSACryptoServiceProvider .
2
votes
1 answer

xades4j verification issue with embeded x509 certificate

I am using smart card for signing and SunMSCAPI provider and windows key store. Using xades4j 1.3.2 version I am singing an xml file as follows and it is working perfectly and the certificate is also embeded in xml file in KeyInfo, private Document…
Matt
  • 1,953
  • 1
  • 19
  • 42
2
votes
1 answer

How can I create XAdES-T signature for binary content with xades4j?

I want to create detached XAdES-T signature for binary files. I've found in an other stack overflow post the xades4j tool. But I've found only examples for creating signature for xml documents. How can I sign binary file with xades4j?
user1552545
  • 1,233
  • 3
  • 15
  • 33
2
votes
1 answer

XmlDSig: The Reference Processing Model (Node set vs Octet stream)

I'm studying XML Advanced Electronic Signatures. To create "ArchiveTimeStamp" (page 58) the Specification says: Process the retrieved ds:Reference element according to the reference processing model of XMLDSIG. If the result is a XML node set,…
Cobaia
  • 1,503
  • 3
  • 22
  • 41
2
votes
1 answer

How can I extract xades signed content in Java xades4j?

I have got xades XML as InputStream. I do not care if certyficates are valid, check sign, etc. I can't provide any CA or any other type of certificate storage/validation. What I need is just get documents embedded in xades file as streams or…
redguy
  • 405
  • 6
  • 16
1
2 3
8 9