🐛 invalid pades signature fix node-sign pdf locally

This commit is contained in:
Timur Ercan
2023-03-01 18:28:05 +01:00
parent cfb0d94e84
commit 2dc6164119
2 changed files with 3 additions and 196 deletions

View File

@ -149,15 +149,15 @@ class SignPdf {
authenticatedAttributes: [{
type: _nodeForge.default.pki.oids.contentType,
value: _nodeForge.default.pki.oids.data
}, {
type: _nodeForge.default.pki.oids.messageDigest // value will be auto-populated at signing time
}, {
type: _nodeForge.default.pki.oids.signingTime,
// value can also be auto-populated at signing time
// We may also support passing this as an option to sign().
// Would be useful to match the creation time of the document for example.
value: new Date()
}, {
type: _nodeForge.default.pki.oids.messageDigest // value will be auto-populated at signing time
}]
}); // Sign in detached mode.