title: "fatal: HttpRequestException encountered." Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
body: <h1>Problem</h1>
  
  <p>I recently encountered the following message when I pushed to a GitHub repo:</p>
  
  <p><code>"fatal: HttpRequestException encountered. "</code>
  followed by being prompted for my username and password again. </p>
  
  <p>From previous searches, <a href="https://stackoverflow.com/questions/48956927/cant-push-git-visual-studio-git-failed-with-a-fatal-error-fatal-httprequeste">Visual Studio</a> and <a href="https://stackoverflow.com/questions/49021981/git-push-makes-me-login-to-github-fatal-httprequestexception-encountered">various others</a> have the same root problem. For those lazier than I am, a summary of the various solutions for different applications/OS are here with relevant discussions. Hopefully people find this helpful.</p>
  
  <h1>Reason</h1>
  
  <p>Can't really call updating sercurity a problem, so here's the reason. The issue is GitHub has removed TLS-1.0 support which is causing the problem with clients including Microsoft Visual Studio's built in git client, versions of Git below 1.14 as well as GUI clients includint tortoiseGit, etc. The full release notes can be found here: 
  <a href="https://githubengineering.com/crypto-removal-notice/" rel="noreferrer">https://githubengineering.com/crypto-removal-notice/</a></p>
  
  <p><a href="https://bitbucket.org/blog/deprecating-tlsv1-tlsv1-1-2018-12-01" rel="noreferrer">Bitbucket</a> will drop TLSv1.0 and TLSv1.1 starting 1 Dec 2018. I expect similar problems as before. </p>
  
  <h1>Solution</h1>
  
  <p>Edit: moved my self-answer to an answer box. See below.   </p>