28 September 2018

Error When Installing Laravel Passport

When you are working in a well established company, it's common that the company using multi layer security to prevent security attachk either from inside or outside organization. This security, sometimes make us as developer to have extra effort to go through that layer.

I found this kind of error when I try to install Laravel Passport.

The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL: An established connection was aborted by the software in your host machine.

I already disabled my Local Area Connection (Intranet LAN), and using my smartphone as a usb tethering modem, but unluckyly i still found that error. Has been trying several workaround and still having no clue for solution, and after all i found this 2 simple commands resolving my problem.

set http_proxy=
set https_proxy=

All two commands do is simply set variable http_proxy and https_proxy  to null. So when I using my own "internet", i don't need to go through proxy that has been set up by my company.