Like many open source tools (originally or completely) based on Linux, git has issues with self-signed certificates, especially if you work in a corporate environment where your company may have network message inspection hardware for security. To get git to work in such an environment, you'll need the public root Certificate Authority certificate for your company, exported to a base 64 .cer file. Once you have that, run the following command to install it into git's private certificate store:
git config --global http.sslCAInfo "<path/to/your/certfile.cer or .pem>"
Showing posts with label self-signed certificates. Show all posts
Showing posts with label self-signed certificates. Show all posts
Tuesday, January 09, 2018
Thursday, August 31, 2017
Fixing github access behind a corporate firewall with self-signed certificates
If you're doing development with bower packages in Visual Studio projects behind a corporate firewall, you may have run into issues with self-signed certificates. The quickest and easiest way to get around this (though definitely not safest or most recommended) is to simply globally ignore self-signed certificates.
On your Developer Command Prompt (assuming you've got 'git' in your PATH):
git config --global http.sslverify false
On your Developer Command Prompt (assuming you've got 'git' in your PATH):
git config --global http.sslverify false
Fixing Bower behind a corporate firewall
Our company uses software to intercept and inspect encrypted packets (like many other corporate entities). As a result, there are self-signed certificates added to the packets. This creates a problem with many package managers like npm and bower.
If you're looking to get started quickly with bower in your .NET application in Visual Studio, simply put a .bowerrc file with the following contents in the root of your project (next to, say, your web.config):
If you're looking to get started quickly with bower in your .NET application in Visual Studio, simply put a .bowerrc file with the following contents in the root of your project (next to, say, your web.config):
{ "strict-ssl": false }
Subscribe to:
Posts (Atom)