Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jgozner authored Mar 31, 2023
1 parent 1483a5a commit f02970c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const main = async () =>{
await doc.saveCustomSignature(cms_signature, digital_signature_field, OUT_FILE);

const opts = await VerificationOptions.create(VerificationOptions.SecurityLevel.e_compatibility_and_archiving);
await opts.addTrustedCertificateUString(path.resolve(__dirname, './certs/globalsign.non-public.hvca.demo-root.cer'), VerificationOptions.CertificateTrustFlag.e_complete_trust)
await opts.addTrustedCertificateUString(path.resolve(__dirname, './certs/root.cer'), VerificationOptions.CertificateTrustFlag.e_complete_trust)
await opts.enableTrustVerification(true);

const timestamp_verification_result = await digital_signature_field.verify(opts);
Expand Down

0 comments on commit f02970c

Please sign in to comment.