Signature Does Not Match Error when sending to S3 from an AWS IoT client.

0

I'm working on an embedded device that will send logs to an S3 bucket. It uses an MQTT client to publish a link request and receive a generated URL on a subscribed topic. It then uses the URL to upload a log file to S3. My code base is the AWS embedded C SDK.

The code successfully connects to the AWS endpoint to request and receive the URL. It then uses libcurl to upload the file with HTTPS.

When the code attempts to upload the file to S3, the it gets back a 403 error with this message: "The request signature we calculated does not match the signature you provided. Check your key and signing method."

I'm confused since those keys were used for the AWS IoT request with no issues.

I searched online for this error but nothing I saw applied to this use case. Has anybody else had a similar issue where device keys work for the AWS IoT side but not the S3 side?

Thanks in advance for help on this.

SOLVED

Bit by the newline in the MD5 file. Used a different utility and got through.

Edited by: GaryKB on Aug 19, 2020 5:19 AM

GaryKB
질문됨 4년 전462회 조회
1개 답변
0

Fixed issue with the MD5.

GaryKB
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠