Skip to content

Commit 0462771

Browse files
Updated SetaPDF-Signer dependency
Implemented #9 "Use PadesProxyTrait"
1 parent 03c5578 commit 0462771

File tree

4 files changed

+119
-167
lines changed

4 files changed

+119
-167
lines changed

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,6 @@ for more options for authentication with composer.
4545

4646
**You have to define your credentials for AWS KMS in [environment variables](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_environment.html).**
4747

48-
49-
### Evaluation version
50-
By default this packages depends on a licensed version of the [SetaPDF-Signer](https://www.setasign.com/signer)
51-
component. If you want to use it with an [evaluation version](https://www.setasign.com/products/setapdf-signer/evaluate/)
52-
please use following in your composer.json:
53-
54-
```json
55-
{
56-
"require": {
57-
"setasign/setapdf-signer-addon-aws-kms": "dev-evaluation"
58-
},
59-
"repositories": [
60-
{
61-
"type": "composer",
62-
"url": "https://www.setasign.com/downloads/"
63-
}
64-
]
65-
}
66-
```
67-
6848
## Usage
6949

7050
All classes in this package are located in the namespace `setasign\SetaPDF\Signer\Module\AwsKms`.
@@ -85,7 +65,6 @@ $awsKmsModule = new setasign\SetaPDF\Signer\Module\AwsKms\Module($keyId, $kmsCli
8565

8666
$cert = file_get_contents('your-cert.crt');
8767
$awsKmsModule->setCertificate($cert);
88-
$awsKmsModule->setDigest($digest);
8968
$awsKmsModule->setSignatureAlgorithm($algorithm);
9069

9170
// the file to sign
@@ -101,7 +80,7 @@ $signer = new SetaPDF_Signer($document);
10180
$signer->sign($awsKmsModule);
10281
```
10382

104-
Make sure that you pass `$digest` and `$algorithm` values which match the configuration of the key in the KMS.
83+
Make sure that you pass `$algorithm` value which match the configuration of the key in the KMS.
10584

10685
## License
10786

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=5.6",
15-
"setasign/setapdf-signer": "^2.0",
15+
"setasign/setapdf-signer": "^2.40",
1616
"aws/aws-sdk-php": "^3.171"
1717
},
1818
"require-dev": {

composer.lock

Lines changed: 104 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)