This function allows user to sign a document in any of the supported signature format.
The document to sign can be sent through an URL (parameter url_in) or through data stream (parameter file_in); only one of the above methods can be used.
The signed file is sent to an URL (parameter url_out) or it can be retrieved through the result endpoint (for 60 seconds, see above).
URL: http://{SMARTSEC}/api/sign METHOD: POST ENCODING: multipart/form-data
Input parameters for /api/sign (multipart/form-data).
Note: the document to sign can be provided either with url_in OR with file_in (only one method can be used).
1 : the certificate will be checked before signature 0 : the certificate will NOT be checked before signature
The alias corresponding to the Timestamp authority to use. The binding between alias and the Timestamping resource is managed by SignBox configuration.
XPath expression to sign selected nodes instead of the root node (default expression is '/*'). If this expression selects a XAdES signature node, it countersigns it.
Bookmark for graphic signature placement (image + position). Example bookmarks: dn01, dn02, dn03, dn04.
Aliases onlydn01, onlydn02, onlydn03, onlydn04 print only the Subject DN. If img_bookmark is set, the position parameter is discarded.
- SignBox domain (HTTP)http://example.com/api/sign
curl -i -X POST \
http://example.com/api/sign \
-H 'Content-Type: multipart/form-data' \
-F url_in=string \
-F url_out=string \
-F urlback=string \
-F 'file_in=@file_in.bin;type=application/octet-stream' \
-F username=string \
-F password=string \
-F pin=string \
-F otp=string \
-F check=string \
-F format=string \
-F identifier=string \
-F tsa_bookmark=string \
-F target_exp=string \
-F reason=string \
-F location=string \
-F level=string \
-F img_bookmark=string \
-F npage=string{ "id": "3.3" }