This package offers an individual module for the SetaPDF-Signer Component that allows you to use TRUST2GO for the signature process of PDF documents. A big advantage of this module is, that it only transfers the hash which shall be signed by TRUST2GO and not the complete PDF document. The returned signature will be placed in the PDF document by the SetaPDF-Signer Component.
The implementation is based on the TRUST2GO API 0.9.27.
To use this package you need credentials for TRUST2GO.
This package is developed and tested on PHP >= 7.1. Requirements of the SetaPDF-Signer component can be found here.
We're using PSR-17 (HTTP Factories) and PSR-18 (HTTP Client) for the requests. So you'll need an implementation of these. We recommend using Guzzle.
"require" : {
"guzzlehttp/guzzle": "^6.5",
"http-interop/http-factory-guzzle": "^1.0",
"mjelamanov/psr18-guzzle": "^1.3"
}
"require" : {
"guzzlehttp/guzzle": "^7.0",
"http-interop/http-factory-guzzle": "^1.0"
}
Add following to your composer.json:
{
"require": {
"setasign/setapdf-signer-addon-globaltrust-trust2go": "^1.0"
},
"repositories": [
{
"type": "composer",
"url": "https://www.setasign.com/downloads/"
}
]
}
and execute composer update
. You need to define the repository
to evaluate the dependency to the
SetaPDF-Signer component
(see here for more details).
By default, this packages depends on a licensed version of the SetaPDF-Signer component. If you want to use it with a trial version please use following in your composer.json:
{
"require": {
"setasign/setapdf-signer-addon-globaltrust-trust2go": "dev-trial"
},
"repositories": [
{
"type": "composer",
"url": "https://www.setasign.com/downloads/"
}
]
}
This package is open-sourced software licensed under the MIT license.
- Signatures with PSS padding are not implemented yet.