When an aws s3 bucket is configured with Object Lock in order to benefit from WORM feature the upload
cf: https://aws.amazon.com/fr/blogs/storage/protecting-data-with-amazon-s3-object-lock/
the upload fails with the following error:
Content-MD5 HTTP header is required for Put Object requests with Object Lock parameters
Is there a way add Content-MD5 header to the request ?
I could have used --add-header=NAME:VALUE but since I'm using built in gpg encryption, I can't compute the md5 before running the command.
Any idea ?