digital-signature

Accessing signing/encryption in a browser's Keystore using JavaScript - sample code? (WebCryptoAPI)

烈酒焚心 提交于 2019-12-18 00:17:12
问题 I have a web server that allows access only using X509 authentication. Works like a charm. Now I want to extend the use of the X509 certificates (which are stored in the user's browser keystore) to Sign data before it is sent to the server (using JavaScript and HTTPPost) Decrypt data read from the server (where it gets encrypted using the user's public key stored there) I found this example doing RSA Signature which is pretty close.... only it does take the key from a HTML textarea. I want to

Message digest of pdf in digital signature

╄→尐↘猪︶ㄣ 提交于 2019-12-17 20:17:41
问题 I want to manually verify the integrity of a signed pdf. I have been able to reach at:- got the value of '/Content' node from pdf(using PyPDF2 ). This is a der encoded PKCS#7 certificate. Now as per pdf specifications , the message digest of the pdf data is stored along with the certificate in /Content node. Tried a lot but I am not able to get the digest value which I would eventually compare with hashed pdf content(specified by /ByteRange ). PDF specification snapshot:- Don't understand the

Open X509 Certificates Selection Using USB Token in C# Hosted on IIS

强颜欢笑 提交于 2019-12-17 19:52:53
问题 I am working on a requirement which required Digital Signature on PDF files in ASP.Net C# and developed one application who gets the client certificate using USB token on my local machine. But, When hosting this application on IIS server getting error 'Current Session is not Interactive' . Anyone have any idea, how can we get X509Certificates from client machine in ASP.Net C# and this application hosted on IIS server not console application. My code for reference: private void getSign() {

Get Visible Signature from a PDF using PDFBox?

拈花ヽ惹草 提交于 2019-12-17 19:46:19
问题 Is it possible to extract the visible signature (image) of an signed PDF with the OSS library PDFBox? Workflow: list all signatures of a file show which signatures include a visible signature show which are valid extract images of signatures (need to extract correct image for each signature) Something in oop style like following would be awesome: PDFSignatures [] sigs = document.getPDFSignatures() sig[0].getCN() ... (Buffered)Image visibleSig = sig[0].getVisibleSignature() Found class

How to make a digital signature in a web application (JavaScript) using a smartcard?

你离开我真会死。 提交于 2019-12-17 15:41:58
问题 We have written a document management system and would like to digitally sign documents using the web client. Our Java client application is already able to apply and check digital signature, but we would like to make signature even with our web client. This is written in GWT and so, when run on the client side, it is a JavaScript application. We not want to create a Java applet and download it on the client and execute it. We would like to use the browser security device or the browser API

app-release-unsigned.apk is not signed

不问归期 提交于 2019-12-17 08:00:01
问题 I downloaded the zip file of an Android app on github and I'm trying to run it, but I get a dialog with this message app-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog. I'm using Android Studio. What am I supposed to do? 回答1: If anyone wants to debug release build using Android Studio, follow these steps: Set build variant to release mode. Right click on app in left navigation pane, click Open Module

pdfBox - Signature validity checkmark not visible in Acrobat reader

余生长醉 提交于 2019-12-17 06:19:49
问题 I am adding a visual signature to a pdf using this as reference - https://stackoverflow.com/a/27940667/7103795 I am able to print the details properly. But the pdf does not display a green tick when opened in Acrobat though it is written "Signed and all signatures are valid." in the signature panel. This is an example of what I need: How can I ensure that the validity sign show up? I am using pdfBox version 2.0.1 回答1: In-document visualisations of the signature validity have been deprecated

pdfBox - Signature validity checkmark not visible in Acrobat reader

荒凉一梦 提交于 2019-12-17 06:19:08
问题 I am adding a visual signature to a pdf using this as reference - https://stackoverflow.com/a/27940667/7103795 I am able to print the details properly. But the pdf does not display a green tick when opened in Acrobat though it is written "Signed and all signatures are valid." in the signature panel. This is an example of what I need: How can I ensure that the validity sign show up? I am using pdfBox version 2.0.1 回答1: In-document visualisations of the signature validity have been deprecated

How to Digitally Sign GST Return or eReturn using JavaScript form Browser and USB Token of user? Can I use WebCrypto API?

空扰寡人 提交于 2019-12-17 03:20:38
问题 Looking for Javascript code to sign GST or Income Tax eReturns from Browser using USB Token. 回答1: Recently much is being talked about WebCrypto API but as of now, WebCrypto API does not provide access to (Windows) or any other Key stores or local crypto USB/Smartcard device. Older methods being java applets, Active X, etc which are phased out or are being phased out from the Modern Browser offerings. Most of the web applications require Digital Signing pdf documents, files, eReturns (XML or

Signing PDFs on a server document using a signature from the user

一笑奈何 提交于 2019-12-17 02:38:15
问题 Here is what I want to do: user creates document (html) edit -> save PDF on server ask if user wants to sign the document (yes) here is the problem (no) no problem ???? (not important) So now the problem I face is how to do that (yes) in step 3. If the signature is on the server no problem, I have some html->php->pdf classes that can sign with digital signatures but the signature must be on the server as a file. The question is, how can I do it directly on the server. The user chooses yes,