Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

amazon s3 upload error ssl certificate

//in laravel/config/filesystems.php
//add this line in S3
'scheme' => 'http' // to disable SSL verification on local development

//Your filesystem.php should look like this
's3' => [
    'driver' => 's3',
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'region' => env('AWS_DEFAULT_REGION'),
    'bucket' => env('AWS_BUCKET'),
    'url' => env('AWS_URL'),
    'scheme' => 'http' // to disable SSL verification on local development
],
//When you run it on your server which has SSL verification, you need to comment 'scheme' line.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #amazon #upload #error #ssl #certificate
ADD COMMENT
Topic
Name
6+5 =