digital-signature

Is there an easier way to sign an XML document in Java?

痴心易碎 提交于 2021-02-06 08:38:28
问题 I'm trying to digitally sign an XML document using Java. I've got an implementation working with some references I've found that use various implementations in the javax.xml.crypto.dsig package. However, my current implementation is like many of the examples I've looked at - it's rather verbose and involves using no less than 23 different API classes from the java.xml.crypto.dsig , javax.xml.transform , and java.security packages, among others. It feels like I've entered factory factory

Signing documents with SunMSCAPI and suppressing the “Enter PIN” dialog

允我心安 提交于 2021-02-05 20:37:12
问题 I am developing a java code that signs documents using a certificate token. So far, everything works great, but I want to suppress the "enter pin" dialog because I am storing the user's pin so he/she does not need to type it every time. The real problem here is that this code will run in batch mode (no user interaction). I know that once typed, the key may be in memory so it does not need to be typed again for a shorty time. But I can't rely on that, I need to provide the PIN. Here the code I

Library to manage XAdES signatures in Java [closed]

吃可爱长大的小学妹 提交于 2021-02-05 20:30:47
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I'm looking for a Java library that allows the creation and verification of XAdES signatures (the more formats, the better: XAdES-BES, XAdES-C, XAdES-X-L, etc.). The most interesting implementations I found are: Java XML Digital Signature API (JSR 105) (= the one

Library to manage XAdES signatures in Java [closed]

爷,独闯天下 提交于 2021-02-05 20:29:26
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I'm looking for a Java library that allows the creation and verification of XAdES signatures (the more formats, the better: XAdES-BES, XAdES-C, XAdES-X-L, etc.). The most interesting implementations I found are: Java XML Digital Signature API (JSR 105) (= the one

Library to manage XAdES signatures in Java [closed]

给你一囗甜甜゛ 提交于 2021-02-05 20:27:55
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I'm looking for a Java library that allows the creation and verification of XAdES signatures (the more formats, the better: XAdES-BES, XAdES-C, XAdES-X-L, etc.). The most interesting implementations I found are: Java XML Digital Signature API (JSR 105) (= the one

How to add custom field in iText signature stamp?

混江龙づ霸主 提交于 2021-02-01 05:19:13
问题 I have a simple signature method to sign PDF documents working fine, it signs the documents with the default stamp that shows Name, Location, Date and Reason. Now my manager asked me if it is possible to add one more field on it. Let's suppose it is an "Email" field as I haven't been told exactly what they want. I tried searching and apply somethings I found but nothing has worked. Also, I was asked if it is possible to remove/hide the label of those 4 default fields (Date, Reason, etc...)

How to add custom field in iText signature stamp?

不羁的心 提交于 2021-02-01 05:17:05
问题 I have a simple signature method to sign PDF documents working fine, it signs the documents with the default stamp that shows Name, Location, Date and Reason. Now my manager asked me if it is possible to add one more field on it. Let's suppose it is an "Email" field as I haven't been told exactly what they want. I tried searching and apply somethings I found but nothing has worked. Also, I was asked if it is possible to remove/hide the label of those 4 default fields (Date, Reason, etc...)

Signing with OCSP by using iText

六月ゝ 毕业季﹏ 提交于 2021-01-29 18:54:32
问题 I can sign a pdf document without problem. My app logic is; 1- create an empty field for signature in pdf 2- send the hash code of the field to the signature webservice 3- get signature object 4- embedded this object into the field. Here is my code Signature is Invalid for PDF File with iText Thank to @mlk, helped me regarding it. But I i realize that I have problem with Revocation. As can bee seen in the image, my signature does not contain OCSP. and in the trust section, 'Certify documents'

OpenSSL Digitally Sign Digest Only

匆匆过客 提交于 2021-01-29 18:40:00
问题 I have a signing server where you can upload a file and it will respond with the digital signature. It is using openssl dgst -sha256 -sign which works fine. However, we've had to start signing large files (>1 GB) and the uploads take forever. I had the idea that we could compute the sha256 digest locally and pass just that to the signing server which would speed things up considerably. However, this seemingly simple task seems crazy hard with openssl. Is there a reason for this? I found one

How do e-Signature companies create valid digital signatures

心已入冬 提交于 2021-01-29 12:31:00
问题 For fun, I recently build a e-signature web app to allow users to add a handwritten signature to PDF (IE signing a TOS agreement). It only took a couple minutes of research to realize my method of just added a written signature image to a PDF probably wouldn't hold up very well in a legal dispute. A cryptographic digital signature is needed to verify the identity of the signee as well as ensure the document has not been altered since signing. It got me wondering how companies like Docusign