RequestError x509: certificate signed by unknown authority while uploading workspace

I’ve received the following error message when trying to persist a workspace:

Creating workspace archive...
.....................................................................................................................
Uploading workspace archive...

Error uploading workspace archive: RequestError: send request failed
caused by: Put https://circle-production-customer-artifacts.s3.amazonaws.com/picard/59955d6cc9e77c00018dcabb/workflows/workspaces/c6347d36-33d0-46e5-8012-48fe17c63356/0/318c5883-571e-4bdf-96f9-62fdea59df86/0/104.tar.gz: x509: certificate signed by unknown authority

The error occurred in this build.

I’m getting a similar problem, except that it happens on an attach_workspace step when the workspace is downloaded. I managed to work around it by using a different docker image for the job, but I have no idea why the failure appeared with one image hosted on Docker Hub, but not the other.

1 Like

This could be the solution: https://support.circleci.com/hc/en-us/articles/360016505753-Resolve-Certificate-Signed-By-Unknown-Authority-error-in-Alpine-images?flash_digest=39b76521a337cecacac0cc10cb28f3747bb5fc6a

1 Like

Yes, confirm adding ca-certificates in the alpine image solves the problem. I’ve added

apk add --no-cache ca-certificates

in my Dockerfile when I build my image.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.