1

I sync my projects to GitHub with Android Studio.

enter image description here

enter image description here

After adding several files, I tried to commit and push. Committing produced no errors, but I was unable to push

I received this error:

9:40:41 AM Push failed: fatal: unable to access 'https://github.com/rrtigga/GetDisciplined1_0.git/': Unknown SSL protocol error in connection to github.com:-9805
9:41:37 AM 1 file committed: -sharedpreferences attempt 9002
           checkbox
9:43:40 AM Push failed: fatal: unable to access 'https://github.com/rrtigga/GetDisciplined1_0.git/': Unknown SSL protocol error in connection to github.com:-9805

I did some research from I am unable to produce a solution that will work for me.

Unknown SSL protocol error in connection

http://blog.techstacks.com/2010/03/3-common-causes-of-unknown-ssl-protocol-errors-with-curl.html

How can I fix this?

Here is what I obtained after openssl s_client -connect github.com:443

CONNECTED(00000003)
depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/street=548 4th Street/postalCode=94107/C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=github.com
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIF4DCCBMigAwIBAgIQDACTENIG2+M3VTWAEY3chzANBgkqhkiG9w0BAQsFADB1
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVk
IFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTE0MDQwODAwMDAwMFoXDTE2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Awhi5odHRwOi8vY3JsNC5kaWdpY2VydC5jb20vc2hhMi1ldi1zZXJ2ZXItZzEu
Y3JsMEIGA1UdIAQ7MDkwNwYJYIZIAYb9bAIBMCowKAYIKwYBBQUHAgEWHGh0dHBz
Oi8vd3d3LmRpZ2ljZXJ0LmNvbS9DUFMwgYgGCCsGAQUFBwEBBHwwejAkBggrBgEF
BQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29tMFIGCCsGAQUFBzAChkZodHRw
Oi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGlnaUNlcnRTSEEyRXh0ZW5kZWRWYWxp
ZGF0aW9uU2VydmVyQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQAD
ggEBAG/nbcuC8++QhwnXDxUiLIz+06scipbbXRJd0XjAMbD/RciJ9wiYUhcfTEsg
ZGpt21DXEL5+q/4vgNipSlhBaYFyGQiDm5IQTmIte0ZwQ26jUxMf4pOmI1v3kj43
FHU7uUskQS6lPUgND5nqHkKXxv6V2qtHmssrA9YNQMEK93ga2rWDpK21mUkgLviT
PB5sPdE7IzprOCp+Ynpf3RcFddAkXb6NqJoQRPrStMrv19C1dqUmJRwIQdhkkqev
ff6IQDlhC8BIMKmCNK33cEYDfDWROtW7JNgBvBTwww8jO1gyug8SbGZ6bZ3k8OV8
XX4C2NesiZcLYbc2n7B9O+63M2k=
-----END CERTIFICATE-----
subject=/businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/street=548 4th Street/postalCode=94107/C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=github.com
issuer=/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
---
No client certificate CA names sent
---
SSL handshake has read 2890 bytes and written 456 bytes
---
New, TLSv1/SSLv3, Cipher is AES128-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : AES128-SHA
    Session-ID: 6FF41C622CD9C0BCA1E39A6A266DE94AC91B4343D50845AE4765CA6A62D42AE5
    Session-ID-ctx: 
    Master-Key: A3885EE106E5D99F6FA884DC35C94ABA5C73965613168E82F9E9733C7B433A3BD2C17802FA91E396AE901D47D553B0D2
    Key-Arg   : None
    Start Time: 1407856220
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
closed
Community
  • 1
  • 1
Rohit Tigga
  • 2,373
  • 9
  • 43
  • 81
  • The `-9805` looks like you are on OS X (I think that's a `SecureTransport` error code). Is that the case? – jww Aug 12 '14 at 01:07
  • GitHub uses DigiCert as the CA. Specifically, the site is certified by `DigiCert High Assurance EV Root CA`. That CA is part of Mac OS X trusted store; see [OS X Mavericks: List of available trusted root certificates](http://support.apple.com/kb/HT6005). Does your organization use an SSL/TLS interception proxy or other proxy? Update your question and post the results of `openssl s_client -connect github.com:443`. – jww Aug 12 '14 at 01:15
  • Okay. I am having some trouble obtaining the results of that. how do I obtain the result? – Rohit Tigga Aug 12 '14 at 02:07
  • CONNECTED(00000003) depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA verify error:num=20:unable to get local issuer certificate verify return:0 --- Certificate chain 0 s:/businessCategory=Private – Rohit Tigga Aug 12 '14 at 15:12
  • Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/street=548 4th Street/postalCode=94107/C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=github.com i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA --- --- – Rohit Tigga Aug 12 '14 at 15:12
  • I'll just post it in my question – Rohit Tigga Aug 12 '14 at 15:13
  • That is weird. That's the expected output from `s_client`, so I don't see anything wrong. Actually, there's one small thing wrong: `Verify return code: 0 (ok)`. You should *not* have gotten that result because I did *not* specify *-CAfile* option to `s_client`. But there is *no* proxy mucking with things. Can you check your Keychain? Make sure `DigiCert SHA2 Extended Validation Server CA` is present, and make sure *Trust* is set to *Use System Defaults*. Other than that, I am at a loss to explain it because everything looks OK. – jww Aug 12 '14 at 15:55
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/59206/discussion-between-xijiaopin-and-jww). – Rohit Tigga Aug 12 '14 at 15:57
  • Just to confirm you mean check the keychain in my iCloud right? – Rohit Tigga Aug 12 '14 at 16:01
  • Are you using [MacPorts](http://www.macports.org/)? – jww Aug 12 '14 at 19:42
  • No I am actually not. – Rohit Tigga Aug 12 '14 at 19:43

1 Answers1

0

I got this error today and after some trial-and-error I determined my repository had just gone over the 1GB threshold. After deleting a junk branch, I was able to push again.

Alex R
  • 11,364
  • 15
  • 100
  • 180