Skip to content
Advertisement

AWS Exception “Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4” even after set the v4 signature

I have below code to connect to AWS S3.

JavaScript

However, I got an error

JavaScript

I googled online, and the suggestion is to set the signature to version 4, which I did already. Any thoughts?

Note my aws jdk is pretty dated as I cannot upgrade it due to some other libs conflicts.

Advertisement

Answer

Setting AWS SDK client configuration to V4 Signature

Java:

JavaScript

NodeJs:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement