Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lejam27's avatar

Error while trying to upload file to digitalocean Spaces

Hello, I'm getting the following error when trying to upload file to digitalocean spaces

exception 'Aws\S3\Exception\S3Exception' with message 'Error executing "PutObject" on "https://sfo2.digitaloceanspaces.com/uploads/images/1041396.jpg"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)'

does anyone know why this happens?

my filesystems config is:

'do_spaces' => [ 'driver' => 's3', 'key' => env('DO_SPACES_KEY'), 'secret' => env('DO_SPACES_SECRET'), 'region' => env('DO_SPACES_REGION'), 'bucket' => env('DO_SPACES_BUCKET'), 'endpoint' => env('DO_SPACES_ENDPOINT'), ],

env config is: DO_SPACES_KEY=key DO_SPACES_SECRET=secret DO_SPACES_ENDPOINT=https://sfo2.digitaloceanspaces.com DO_SPACES_REGION=sfo2 DO_SPACES_BUCKET=mybucket

thanks in advance.

0 likes
3 replies
PiperAlpha's avatar

I'm having a similar problem as well. Did you end up finding a solution?

Thanks.

1 like
lejam27's avatar

Hello, are you trying to upload the files from windows? apparently some certificate needs to be installed in windows to be able to upload files, which I was not able to find online.

What I did back in the time was test the code once I deployed the project to the server.

1 like
PiperAlpha's avatar

No, I'm trying to do this from a Forge-server and from my local dev environment (macOS).

I found a couple of threads on Stack Overflow where someone was using Wamp / Mamp on Windows that needed a cURL CA-certificate. I even tried to install this cert without any luck.

Please or to participate in this conversation.