Search code examples
amazon-s3aws-sdkaws-sdk-cpp

How can I set signature to v2 by using AWS S3 C++ SDK


I have to set the AWS S3 C++ SDK to using signature_v2,I know how to set it in PHP SDK,but I did't found the method in C++ SDK.Is anybody know ,thx!


Solution

  • Signature Version 2 has been deprecated in favor of the more secure version 4. We don't support it, and the only reason it is supported in other sdks is for backwards compatibility. For Amazon S3, you can turn off body signing for v4. This is the default option for the S3 Client in the C++ SDK.