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

Disclaimer: although, it is not a straight answer to your question, but may contain directions for you to get the right way depending on a business requirements. There are two major issues in your question. One of them I tried to discuss in comments, but may need to explain. Let’s try to analyze your initial … Read more

How to load a PKCS#12 Digital Certificate with Javascript WebCrypto API

Web cryptography api does not support PKCS # 12. You can use a third party library to decode the p12 as forge https://github.com/digitalbazaar/forge#pkcs12 and load privateKey in webcrypto Reading the PKCS#12 certificate PKCS#12 is stored in DER, so first read it from a File or use a pre-stored base64 //Reading certificate from a ‘file’ form … Read more

Web Browser Certificate Enrollment (CSR Generation) and Certificate Download to Smartcard or USB Token

Disclosure: I work for CISPL, Co. which develops Signer.Digital Browser Extension Browser Extension may be used to Enroll Certificate (Generate CSR) and Download Certificate in Windows Certificate Store or Smartcard or USB Token from modern browsers. Browser extension provides JavaScript API which in turn talks to host application running on local machine to do the … Read more

Why does git sign with GPG keys rather than using SSH keys?

Update Sept. 2022: 1Password supports generating and storing an SSH key for Git commit signature, recognized by GitHub. Update 2021: OpenSSH 8.2+ is available (packaged for instance in Git For Windows 2.33.1), and “it is now possible to sign arbitrary data with your SSH keys” (Andrew Ayer), including commits in Git. Andrew points to git/git … Read more

Using SHA1 and RSA with java.security.Signature vs. MessageDigest and Cipher

OK, I’ve worked out what’s going on. Leonidas is right, it’s not just the hash that gets encrypted (in the case of the Cipher class method), it’s the ID of the hash algorithm concatenated with the digest: DigestInfo ::= SEQUENCE { digestAlgorithm AlgorithmIdentifier, digest OCTET STRING } Which is why the encryption by the Cipher … Read more

pdfBox – Signature validity checkmark not visible in Acrobat reader

In-document visualisations of the signature validity have been deprecated nearly a decade ago. Adobe Reader supports them for backward compatibility reasons only but they have never been part of the iso pdf specification. The OP in a comment asked for documentation on this; this answer focuses on that. Deprecation in respect to Adobe Acrobat In … Read more

Digitally sign PDF files [closed]

The open source iTextSharp library will allow you to do this. Here’s a post explaining how to digitally sign a pdf file. If you don’t want to use a third party library then you can implement it yourself but it could be a tough task -> you can start by reading the pdf specification (8.6MB)