Verify ASiC (Associated Signature Container)
var asicVerify = require("asic-verify");
asicVerify("/path/to/some-package.asice", function(err, signedSignatureProperties) {
if (err) {
console.error("Verification failed with an error", err);
} else {
console.log("Verified OK");
console.log("Signed on ", signedSignatureProperties.signingTime);
console.log("Signed by ", signedSignatureProperties.signingCertificate);
}
});
asic-verify /path/to/some-package.asice
Limited to ASiC-e + XAdES for packages received via https://www.e-tar.lt/ data export API.