Aws-sdk-go: aws s3 with docker, x509: certificate signed by unknown authority

Created on 2 Dec 2018  路  4Comments  路  Source: aws/aws-sdk-go

Please fill out the sections below to help us address your issue.

Version of AWS SDK for Go?

v1.15.54

Version of Go (go version)?

go1.11.2 darwin/amd64

What issue did you see?

RequestError: send request failed
caused by: Put https://.s3.eu-central-1.amazonaws.com/: x509: certificate signed by unknown authority

Steps to reproduce

1) Copy example from github aws-sdk-go
2) build it
3) Run binary through docker scratch (+docker-compose)

Only creating this issue for those who had a similar issue, since I have already solved it (spend almost 2 days on it, and couldnt find any info online)

3rd-party guidance

Most helpful comment

The solution is very simple:
Add RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* to dockerfile

All 4 comments

The solution is very simple:
Add RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* to dockerfile

Hi @Kiura, thanks for reaching out to us! It doesn't look like there's anything that needs to be changed in the AWS SDK for Go for this to work as expected, so I'll be closing out the issue at this time.

@Kiura By adding the RUN command, I assume you moved away from the docker scratch image, right?

@Kiura By adding the RUN command, I assume you moved away from the docker scratch image, right?

@timvlaer I am not sure was this the reason but I am using alpine at the moment :)

Was this page helpful?
0 / 5 - 0 ratings