Bower in Visual Studio 2015 inside a corporate network

While playing with Aspnet 5 (vnext) I created a new project and wanted to add a few javascript packages to it. In VS2015 we are expected to use bower for client side packages instead of nuget. I added the bower.json file and included bootstrap and tried to restore, and got some git exceptions.

It took me a while googling and playing before I got bower to restore packages inside our corporate network. In the end I configured bower to use cntlm.

This is my .bowerrc file

    "directory": "wwwroot/Scripts/3rdParty",
    "registry": "",
    "proxy": "http://localhost:3128",
    "https-proxy": "http://localhost:3128",
    "strict-ssl": false