Questions tagged [digital-signature]

1

votes
0

answer
772

Views

Read Certificate from USB token in javascript

I want to read certificate from Digital Signature (USB token) in Javascript, i need both public and private key... ? Any help would be appreciated....
mayur saini
1

votes
1

answer
512

Views

Add Digital Signature to a PDF Swift

I want to create a Swift application in which i fill a form and with the datas in the form i need to create a PDF and need to attach a digital signature to it. can anyone help me with this?
Jincy Varughese
1

votes
0

answer
1.4k

Views

How to sign SHA256 hash and verify it using bouncy castle?

I'm trying to sign SHA256 hash of a base64 encoded json string and validate it against the signature generated. I'm using the below code to sign the hash: Required output: PKCS#7 signature of SHA-256 hash of Base64 of payload JSON using private key String input='Base64encodedJsonData'; byte[] hashed...
VBC
1

votes
0

answer
116

Views

Getting Exception with USB key token while signing the data C#

Following is the code to sign the data. It works perfectly and signed when I run from Visual Studio but when I publish it to IIS it cannot match the certificate and no certificate gets assigned in mycert. Ultimately it throws the exception Cannot find the original signer. My development and publishi...
Ketan Kotak
1

votes
1

answer
386

Views

WiX Toolset Insignia error INSG0001 Access to the path is denied

Hi I use the WiX Toolset v3.11 to deploy several projects. This has worked without issue for some time. I use the Post-build Event Command Line in Visual Studio 2017 to digitally sign my installation package. Unfortunately something went haywire with the USB on my computer so I had to re-Install Win...
Paul
1

votes
0

answer
230

Views

How to access client side USB Token based Digital Signing Certificate in IIS

I have developed an MVC Application, which uses USB Token Digital Signature Certificate. When I run the application from Visual Studio, it works fine. But when I publish it on IIS it doesn't detect USB Token. Do I need to make changes/configuration in IIS server?
Ashish Kumar
1

votes
0

answer
263

Views

Digital signature in Oracle APEX

I am developing an APEX 5 application where the user can upload/download his own files. I want the user to be able to digitally sign the files directly in the application by using his own USB token for digital signature. Is there a way I can do this? I've seen that it is possible to do this in Node...
1

votes
0

answer
96

Views

ethereumjs - signature security issue

Im new to smart contracts world. I have a doubt about the digital signature security. I wanted to know if an attacker can reuse my same signed message and send it several times to another address? client code example: var msg = 'hello'; var sh3 = web3.sha3(msg); web3.eth.sign(account, sh3, (error, r...
Diagonal Think
1

votes
0

answer
105

Views

Swift and Xcode Thread 1: signal SIGABRT error on YPDrawSignatureView

I try to use the YPDrawSignatureView for make an eSignature to my Swift 3.3 project with Xcode 9.3 version. First I pulled the YPDrawSignatureView.swift to my project. After I made two buttons and an UIImage to Main.storyboard. These objects pulled to my ViewController.swift and finally I have writt...
Johnny
1

votes
0

answer
344

Views

java.security.InvalidKeyException: No installed provider supports this key: (null) while verifying signed pdf

i am getting this exception on PdfPKCS7 pkcs7 = fields.verifySignature(name); this is the complete code import com.itextpdf.text.pdf.AcroFields; import com.itextpdf.text.pdf.PdfReader; import com.itextpdf.text.pdf.security.PdfPKCS7; import java.io.IOException; import java.security.GeneralSecurityEx...
ak22shay
1

votes
0

answer
168

Views

Error validating CMS signature

For the past 2 weeks I've been banging my head against a wall trying to create and validate CMS signatures in Swift 4 using OpenSSL. My code is ultimately destined to be run on Linux, so I can't use the macOS Security framework. I believe I have finally gotten CMS signature creation working proper...
Shadowman
1

votes
0

answer
65

Views

Digital Signature on a software add-in

I have to implement a digital signature system into a software that create 3D projects. Several users work on the same project, on different elements of the object. I want each user (or group of users) to sign the part they worked on (as an xml in memory) and store the signature in the project files...
RichardD
1

votes
0

answer
45

Views

Verify RSA signature in openssl0.9.8a

I'm developping a C++ application based on openssl0.9.8a API, i need to verify an RSA signature (4096 bit RSA key) using an RSA public key 'pubkey' const EVP_MD* md = EVP_get_digestbyname('SHA512'); if (!md) return false; if(EVP_DigestInit_ex(ctx, md, NULL)
baatour marouen
1

votes
1

answer
246

Views

Invalid algorithm while creating rsa-sha512 signature

I'm attempting to apply an rsa-sha512 signature to a message, using a certificate on the local HDD. The final SignData raises a cryptographic exception 'Invalid algorithm specified'. However, if I use SignData on a new instance of RSACryptoServiceProvider (created by importing an export of the origi...
Fergus O'Neill
1

votes
1

answer
110

Views

Creation of a detached signature in CMS using SHA-512 for the hash

I have content and CMS with a detached signature (key algorithm - SHA-256) and I add one more signature to the CMS with key algorithm SHA-512. But when adding with CryptoApi, the function CryptMsgControl(hMsg, 0, CMSG_CTRL_ADD_SIGNER, &SignerEncodeInfo) returns CRYPT_E_UNKNOWN_ALGO. The reason for t...
A. Krayn
1

votes
1

answer
209

Views

How long is a document signed with a Digital Signature Certificate valid after the time it is signed?

My understanding is that the digital certificate is valid up to 3 years depending upon what you paid for to the certificate issuing company. So for example, If I bought a DSC from say, emudhra, and it is valid for 2 years. If I sign a document on 1/6/2017 and the DSC is valid from 1/1/2017 to 1/1/2...
Parag Jayaram
1

votes
1

answer
577

Views

Generating XML signature

I've been stuck trying to generate a valid way to sign my xml for two days now. This is how a signature part should look like: cTKLzl3+JJitmqnEmdv4x/h3HZU= GBDvnBoVHlJJ+96+aVqS34Ei7jHRDXm7n21SeFxD42Cqah1FXK0lCz6z/lp3ptDPYMLljCcoYYSX miRdD3/in4inMmn6nb/ZGVPHo26K+gphPg3ChhZGz5YA1cLTaBNMhC0yqSNuuqNnyxP...
Tomas
1

votes
1

answer
203

Views

Digital signature in pdf file using reactJs

I need to build an app that accepts pdf file from the user and place an image of a user image signature (which is already uploaded by the user) where a user clicks on pdf. same as Adobe reader provide a feature to add the digital signature. I am using ReactJs to build this app. Anyone know any clue...
Pardeep Sharma
1

votes
0

answer
44

Views

Is necesary to add empty signature appearance on a PDF to be signed by multiple users

Let's say we have generated a PDF to be signed by two users. The signing process will handled on server side, so the PDF file will be updated (digital signature & timestamp) on server side. No external applications (like adobe reader or pro) will be involved on this process. Do I need to create two...
h2odev
1

votes
1

answer
312

Views

cert x509 Laravel auth SSL

I'm trying to implement a digital signature to log in in a web with Laravel(php) and I can't find good information. I think I should use x509 SSL but I can't find nothing. I just found that: https://github.com/ingria/laravel-x509-auth/wiki/Using-other-cert-attributes https://github.com/ndavison/la...
Kora
1

votes
0

answer
35

Views

WSS4J Invalid Digital Signature

We are generating an XML SOAP message but the receiving gateway (EMIS) responds with a message to say the the signature is invalid: INVALID_REQUEST Invalid digital signature If we run verification against the soap payload, as so: DOMValidateContext valContext = new DOMValidateContext(new X509KeySele...
garryj
1

votes
1

answer
26

Views

Create .key file knowing the key code of digital signature

I need to create a .pfx file starting from the digital signature contained in a smart card. I have a smart card and I know the key code that allow me to create a .cer file, but not the .pfx. I tried using the 'OpenSSL' utility but what I miss is the '.key' file. How can I generate the .key file know...
Maurizio Petrini
1

votes
1

answer
262

Views

Digitally sign PDF by epass 2003 DSC usb token in website on ASP.NET C#

I want to digitally sign PDF by epass2003 DSC USB token on my website on ASP.NET C#. My requirement step by step on website Firstly client attach the usb don-gal on his machine then code verify it Then sign the PDF with DSC USB token Certificate with sign-in Suggest me right full examples. I have wr...
Prabhakar
1

votes
0

answer
52

Views

How to write new data inside Swift Data object

I'm trying to embed a PKCS#7 digital signature into a PDF using Debenu (Foxit) Quick PDF Library for iOS. Based on the example code they provided, I'll have to write the signature (in hexadecimal format) inside the PDF file byte array. Here's the example code written in C#: public int Sign(string pd...
Marcos Tanaka
1

votes
0

answer
57

Views

Digital signature slowing down DLL

I’m facing a very strange issue: I have a DLL developed in C++ & Visual Studio which have been working fine for some years (being constantly updated). Recently I noticed that when moved to other PCs was slowing down the performance. As an example, I measured a function that takes around 120ms to b...
Carles
1

votes
1

answer
101

Views

iText5.x Setting pushbutton appearance without breaking Seal

Here is the context: We add two empty pages to an existing pdf, each containing an empty pushbutton field We apply a PAdES B-B seal with all modification rights on the document We modify a pushbutton to insert an image in it When we try to modify the pushbutton appearance to set an image, the seal...
Bro
1

votes
0

answer
86

Views

Attach XML-DSIG to a PDF

I'm trying to implement BankID (Swedish eID provider) to sign PDF files in node.js. They have an API for both user authentication and file signing. The key is to get a PAdES file at the end of the process. First, I modify the PDF and inject placeholder zeros that will be replaced by the digital sign...
jakehomoly
1

votes
1

answer
41

Views

XML DigestValue Re-calculate

I got correctly signed XML file generated by SoapUI. Code below is part of WSSE Header. 1rHcIC43O2CYNQesaNK/uQpnJ8M= As we can see the DigestValue is equal to 1rHcIC43O2CYNQesaNK/uQpnJ8M= but after my calculation is equal to sc6nLxoiPHloI1X/ufbMEMFEd6c= My canonicalized Body element (c14n) looks as...
Rob
1

votes
0

answer
37

Views

Does hashing a file consider its digital signature as well?

I have a signed (using windows signtool) executable which is hashed by SHA1 algorithm and encrypted using RSA. Now I like to verify the executable to avoid security vulnerabilities.For that I have an idea to get the hashing algorithm from the digital signature and hash the signed executable again an...
Kethiri Sundar
1

votes
0

answer
25

Views

How to retrieve Message digest from a file's signature

I have a file signed with my private key.I have a message digest embedded in that file. Now using the public key found in the certificate I like to decrypt that message digest to get the hash of that file. Which c++ API or Windows default commands can I use to implement this?
Kethiri Sundar
1

votes
0

answer
227

Views

How to sign a PDF file in Delphi with an Smart Card Certificate

First, sorry for my english, this is not my first language, but let's go: I need to digital sign pdf documents in my software, but my client just have A3 certificates (with smart card). The problem here is that kind of certificates can't export PFX file which are required for signature in Debenu SDK...
Marcos Oliveira
1

votes
1

answer
126

Views

Google/Tink: How use public key to verify signature

We want to use the Tink library in our project to be able to verify some incoming signatures given a public key. What we have are the following: The public key as a string The signature itself The plaintext After going through Tink's documentation, we cannot figure out how to load the public key str...
Alex
1

votes
1

answer
49

Views

Figuring out programmatically if a Java class was patched?

Is it possible to figure it out programmatically, if anybody patched a class of a compiled code, especially in Android? Example: My building (e.g. an .apk) contains a class PiracyCheck.class. Is it possible to run at compile time some kind of 'checksum' of that class (executed by another class)? I i...
Bevor
1

votes
1

answer
84

Views

Sign PDF using Aspose PDF and external private key on Azure Key Vault

I am trying to digitally sign a PDF using Aspose Pdf by using an external device to actually do the signing, in this case Azure Key Vault. iText has a very good mechanism for this. They provide IExternalSignature interface that you can implement which provides the Sign functionality, however I can't...
shizik
1

votes
1

answer
72

Views

OscpVerifier validating OCSP signers certificate against current date instead of signDate - bug or feature?

I am using iTextSharp 5.5.13 in order to sign and validate PDF files. Few days ago I ended up with exception in OcspVerifier.Verify which stated 'certificate expired on 20181225...GMT+00:00' All PDF files are signed with embeded OCSP response and CLR. Validation was done using signing date and it u...
srasulic
1

votes
0

answer
23

Views

Add server-side certificate on Windows

I imported a p12 certificate file to system on Windows 7, on which a Tomcat webapp is running. I try to retrieve certificate with following code: private KSPrivateKeyEntry getKSPrivateKeyEntry(final String alias, ProtectionParameter passwordProtection) { KeyStore keyStore = getKeyStore(); try { if (...
plaidshirt
1

votes
2

answer
104

Views

Generate web service client secure policy from .wsdl for java

I have been researching how to implement a web service client policies from a .wsdl file. The policies of the web services implicates a signature and encryption using a .jks file with the necessary keys (asymmetric privateKey for signing, and a symmetric privateKey for encryption). The policy is: u...
user2162417
1

votes
0

answer
19

Views

Unable to get the 3rd party digital signature of a dll file

I am using the following code to validate the signature of a specific dll: var runspaceConfiguration = RunspaceConfiguration.Create(); using (var runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration)) { runspace.Open(); using (var pipeline = runspace.CreatePipeline()) { pipeline.Commands....
Classic Agent
1

votes
0

answer
43

Views

Add digital signature in PDF file using Apache PDF Box with the existing pfx file

I am working with adding digital signature in pdf using JAVA. I have gone through so many APIs for it. But I couldn't get any example for adding the existing pfx file directly into the pdf. I have tried with Apache PdfBox : PDSignature signature = null; File file = new File('path\\REPORT.pdf'); PDDo...
YLG
1

votes
0

answer
27

Views

Closing tags in a Digitally signed document

I followed the example from microsoft : https://docs.microsoft.com/en-us/dotnet/standard/security/how-to-sign-xml-documents-with-digital-signatures And I get a signature. e7jQRU4xmLaQmWVO9pVovhWSeGU= gAuVoU7bBgzJCD7VZku1Gvju4h/R4mQZGEXK5BoIAKbmYJqeWCYAdvb07gVwaFOc6DeQPmV3lS0BGE4wOZkNqvLqN2BhIM98hYSw...
Well0549

View additional questions