Skip to content

Commit

Permalink
Update README.md for 1st start documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrat7 authored Nov 23, 2024
1 parent ce7994d commit 4a185dc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@

# c2pa aws lambda sign demo with aws kms

## Preperations for setup private key import for AWS KMS

1. convert private key in binary format (.der)

``
openssl pkcs8 -topk8 -inform PEM -outform DER -in es256_private.key -out es256_private.der -nocrypt
``

2. Import with wrapping algorithm `RSAES_OAEP_SHA_256` and a RSA key 4096 bit, ref. [^1]

[^1]: https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html


## Short Introduction in running c2patool with AWS KMS

1. using parameter `signer-path`, ref [^3] and [^4]

[^3]: https://github.com/contentauth/c2patool?tab=readme-ov-file#signing-claim-bytes-with-your-own-signer

[^4]: https://github.com/nitrat7/c2pa_sign_awslambdakms/blob/main/lambda_c2pasign/runC2PA.cs#L208)

2. and application that gets claim-bytes per standard-input and returns signed bytestream via standard-output, ref [^5]

[^5]: https://github.com/nitrat7/c2pa_sign_awslambdakms/blob/main/kms_signer/Program.cs#L18

0 comments on commit 4a185dc

Please sign in to comment.