Get Rid of Git’s TLS Certificate Verification Warning

Introduction

Every time I did a git push I received the following warning:

C:\Repos\MyProject>git push
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
Everything up-to-date

The Cure

What was strange to me, was that my repository on TFS is not using https. As you can see the URL is protocol httpon port 8080.

C:\Repos\MyProject>git config http.sslVerify falseC:\Repos\MyProject>git push
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
Everything up-to-date
C:\Repos\MyProject>git config --unset http.sslVerifyC:\Repos\MyProject>git push
Everything up-to-date
C:\Repos\MyProject>git config http.sslVerify trueC:\Repos\MyProject>git push
Everything up-to-date
C:\Repos\MyProject>git config http.sslVerify falseC:\Repos\MyProject>git push
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
Everything up-to-date
C:\Repos\MyProject>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lindsay Leeds

Lindsay Leeds

I am an IT guy by trade, with interests in investing and personal finance.