Resolving “Unknown SSL protocol error in connection to bitbucket.org:443”
Posted by jpluimers on 2015/11/24
A while ago, I had this error on BitBucket:
Running git.exe with arguments "fetch --prune" failed with return code 128 and error output: "fatal: unable to access 'https://%firstname.lastname@example.org/%user%/%repository%.git/': Unknown SSL protocol error in connection to bitbucket.org:443
A quick search for “Unknown SSL protocol error in connection to bitbucket.org:443” pointed me to a comment by Ludwik Trammer on an answer by Jordfräs:
I resolved the issue by upgrading from git 1.8 to git 2.0.
Which reminded me this was a Windows system, where there is no package manager that verifies how far your non-system software is behind.
One day, I will write a script that finds out about the git version history and inform me of major/minor versions I’ve skipped.
Some notes for that:
- This VM was at “git version 188.8.131.52.msysgit.0” from indeed a very old “Git-184.108.40.206-preview20131230.exe”.
- For version 1.x, the Windows development of Git
- Now I’m at “git version 2.6.1.windows.1” from “Git-2.6.1-32-bit.exe” from https://github.com/git-for-windows/git/releases/latest.
- For version 2.0+, the Windows development Git
Probably I will need to do something similar for Mercurial/hg in the future as well.