How do you validate a digital signature error?
Validating a Digital Signature Using JavaScriptThe following guide outlines how to validate digital signatures when deploying PSPDFKit for Web as a standalone client-side JavaScript library. To validate digital signatures in a server-backed deployment, see our guide for validating digital signatures using PSPDFKit Server. Show The digital signature validation process consists of two steps.
Provide Trusted Root CertificatesPSPDFKit will need access to the trusted root certificates that will be used for digital signature validation. Provided you have the feature enabled in your license, you only need to supply the root certificates that PSPDFKit for Web should use for validation and call the corresponding API method to obtain the validation status of digital signatures embedded in a document. For this purpose, you can set
In order to retrieve the certificate list, PSPDFKit for Web calls the function assigned to Example Using a Dynamic List of Certificates: PSPDFKit.load({ ...configuration, trustedCAsCallback: async () => { let res; let arrayBuffer; try { res = await fetch(myCertificateStore); // Use `res.text()` instead for a PEM-encoded certificate. arrayBuffer = await res.arrayBuffer(); } catch (e) { throw `Error ${e}`; } if (!res.ok) { throw `HTTP Error ${res.statusCode}`; } return [arrayBuffer]; }); Obtain Validation StatusYou can obtain the overall validation status of the current document and information about each one of the digital signatures found on it with the
The If you need granular information about each one of the digital signatures found on the document, the signatures property of For more details about the status of the certificate chain or the integrity of the
document, you can check out the Validation UIWith the Digital Signatures license component, the validation status UI is available, but it’s not enabled by default. You can easily turn it on by specifying the desired option on the
The signature validation UI consists of a colored bar shown under the main toolbar and, if they exist, under the annotation toolbars. The bar will have the background color corresponding to the current document’s validation status: red for “error,” yellow for “warning,” and green for “OK.” These colors are adapted for the default supported themes, light and dark. The status bar will show an informative text about the validation status of the document. The diagram below shows the decision tree that leads to each possible validation status text and color. The bar will be shown or
hidden in each case depending upon the value of The validation status bar will pop up either when the document is loaded (or reloaded), or when How can you validate a digital signature?5 Steps for Validating Digital Signatures In a PDF
Open the digitally signed PDF that you need to validate using Power PDF. Locate the digital signature object within the document. Right click or command-click on the signature object. Select "Verify Signature" from the context menu.
Why can't I validate digital signature in PDF?You may try the following steps and see if this helps: 1) Right-click on the 'validity unknown' icon and click on 'Validate Signature'. 2) You will get the signature validation status window, click on 'Signature Properties'. 4) Verify that there is a certification path.
What happens if digital signature is not valid?If a digital signature isn't valid, there can be many causes. For example, the sender's certificate may have expired, it may have been revoked by the certificate authority (CA), or the server that verifies the certificate might be unavailable. Notify the message sender of the problem.
|