I'm trying to access github's repositories using git fetch
but I'm getting this error:
error: SSL: certificate subject name (*.opendns.com) does not match target host name 'github.com' while accessing https://github.com/<repo name>
This happened earlier this afternoon very suddenly, and it didn't go away. I thought it might be a problem with Github rejecting older versions of OpenSSL.
I am running Ubuntu 11.04 (Natty Narwhal), Git 1.7.4.1, and
openssl version -a
gives this:
OpenSSL 0.9.8o 01 Jun 2010
built on: Tue May 22 23:20:32 UTC 2012
platform: debian-i386
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -
DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -Wa,--noexecstack -g -Wall
OPENSSLDIR: "/usr/lib/ssl"
Any help would be greatly appreciated!
UPDATE 5/1/2014:
Ended up updating Ubuntu to solve this issue. Read somewhere that that is the most secure solution since both my local machine and Github's servers will be as up-to-date with each other as possible.
You need to modify your /etc/resolv.conf file and remove/replace any reference to OpenDNS servers. This is what I did to my /etc/resolv.conf
In /etc/resolv.conf, replace
#OpenDNS
nameserver 208.67.222.222
nameserver 208.67.220.220
to
#Google
nameserver 8.8.8.8
nameserver 8.8.4.4
Let me know if this resolve your SSL issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With