Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

697
Visualizações
AWL SSL error in Laravel : unable to get local issuer certificate

I'm currently setting up amazon s3 on my laravel setup (first time doing anything with AWS), and I've run into a bit of a snag. For reference, I'm using XAMPP v.3.2.2 and PHP 7.0.5. Maybe someone can tell me where I went wrong.

First, I added these to my composer.json file:

"require": {
    "graham-campbell/flysystem": "^3.0",
    "league/flysystem-aws-s3-v3": "^1.0"
},

and ran a composer update.

Next, I added this to my filesystems.php file:

's3' => [
    'driver' => 's3',
    'key'    => 'A--------edited out for stackoverflow-------WA',
    'secret' => 'h-------------edited out for stackoverflow-------------B',
    'region' => 'us-east-1',
    'bucket' => 'commendmeus',
],

and finally I tried doing a test to make sure everything worked. In my routes file I added:

use Illuminate\Support\Facades\Storage;
get('test', function () {
        echo 123;
        $s3 = Storage::disk('s3');
        $s3->put('myfile.txt', 'test file', 'public');
});

Unfortunately, I ran into an error:

S3Exception in WrappedHttpHandler.php line 192: Error executing "ListObjects" on "https://s3.amazonaws.com/commendmeus?prefix=myfile.txt%2F&max-keys=1&encoding-type=url"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Here is a screenshot for reference:

enter image description here

I know nothing of SSL, and while I've seen errors similar to mine on stackoverflow, it might as well be like reading chinese to me. Could anyone help me out with what the proper course of action would be?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

This problem is usually caused by cacert.pem missing from your PHP setup.

1) Download cacert.pem from https://curl.haxx.se/ca/cacert.pem

2) Copy cacert.pem to your PHP directory (or any location).

3) Modify your php.ini to include lines similar to these. Note: the path must be absolute and correct for your system (Windows use C:\path\cacert.pem for example):

curl.cainfo=/path/cacert.pem

openssl.cafile=/path/cacert.pem

over 4 years ago · Santiago Trujillo Relatório

0

Please avoid using localhost, try to name your local domain using, hostname, and get a certificate (ssl) and should work just fine:

Example: https://local.dev

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda