Sunday, July 8, 2018

SSL Error on laravel composer update on windows 10

Options 1
Set git to not use SSL verification
git config --global http.sslVerify false

Options 2
composer config --global disable-tls true
composer config --global secure-http false

Options 3 If the options 1 and 2 is not working

Install OpenSSL

Set back to use SSL verification
git config --global http.sslVerify true

Download the CA bundle from curl and store it somewhere on your file system. Take the path you saved it to and add a line to your php.ini file saying:
openssl.cafile = $path