A simple REST server to sign and validate documents following eIDAS specifications (currently only PAdES format)
Simple config.json
(See config.full.json
for a full configuration with comments)
{
"pkcs11Provider": {
"driverPath": "driver.dll",
"pin": "123456",
"keyName": "DS0"
}
}
All requests with file must be multipart/form-data
Sign the file as soon as possible and send it as response
parameter | type | description |
---|---|---|
file | file | The file to sign |
format | string | The format of the signature |
Add the file the deferred sign queue, once signed the file will be posted to webhook
parameter | type | description |
---|---|---|
file | file | The file to sign |
format | string | The format of the signature |
webhook | string(url) | The webhook |
The request is a multipart/form-data
as described below
parameter | type | description |
---|---|---|
status | boolean | The status of the signature |
[error] | string | The error (if status is false) |
[file] | file | The file (if status is true) |
Verify if a file is signed by fiscal_code
parameter | type | description |
---|---|---|
file | file | The file to sign |
format | string | The format of the signature |
fiscal_code | string | The fiscal code to validate |