Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

Introduction

SWS provides REST interface for Pades and Cades signatures for very large files (you can sign files over 1GB). Without any problem with appliance memory as it handles files with a stream.

...

You can find this two method:

  • signPAdES

  • signCAdES

signPAdES

Below is the example of signPAdES request with CURL:

...

In this example, we are signing the file: "FILE_TO_BE_SIGNED.pdf" and the file signed will be saved in "FILE_SIGNED.pdf".

signCAdES

Below is the example of signCAdES with CURL:

...

At this link, you can download the preferences and the credentials used.

Technical Configurations

By Default, you can sign until 1GB without add customization, but if you want sign files over 1GB, you must add customization properties

...

Where you can replace this placeholder:

Code Block
MAX_REQUESTMULTIPART -> is the max file size you want sign in GB (our advise is greater than the file size you want sign)
MAX_MULTIPARTREQUEST -> is the max file of request (should be at the least the value of MAX_REQUEST)

For example if you want sign a file of 3GB, you can use this value:

Code Block
MAX_REQUEST = 4
5
MAX_MULTIPART = 54

And the properties of docker run run will be:

Code Block
docker run ... -e SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE=4GB5GB -e SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE=5GB4GB
Note

IMPORTANT: the disk free space must be at least a double of MAX_MULTIPART value, in the above, you should have at least 10GB free