Skip to content

Instantly share code, notes, and snippets.

@rija
Created March 25, 2018 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rija/0249be8829a28df89f31aceaeb7a929f to your computer and use it in GitHub Desktop.
Save rija/0249be8829a28df89f31aceaeb7a929f to your computer and use it in GitHub Desktop.
github TLS access

Fix for the error during vagrant provision where git command failed to connect with github.com

the error message says:

```
error:  while accessing https://github.com/yiisoft/yii.git/info/refs

fatal: HTTP request failed
```

ssh-ing into the box and running ``GIT_CURL_VERBOSE=1 git ls-remote "https://github.com/yiisoft/yii.git"``

shows an SSL error (NSS error -12190).

it turned out that github turned off some SSL/TLS protocols yesterday
(See: https://github.com/blog/2507-weak-cryptographic-standards-removed)

and the Centos 6.7 box  used here don't support well the TLSv1.2 protocol that's now mandated by github.

The problem is resolved by force upgrading openssl and curl during provisioning but before call to cookbook  yii_framework command
and only for redhat platform. Using  "package" Chef command doesn't work, i have to use yum_package and flush the yum repos cache beforehand.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment