Jekyll Gist - Liquid Exception: SSL_connect

Trying to use jekyll-gist and I encountered an issue with Windows

Liquid Exception: SSL_connect returned=1 errno=0 state=error: certificate verify failed in C:/development/github/darkedges.github.io/_posts/2016-12-11-google-functions-emulator.md

Turns out there is an issue with Ruby and OpenSSL using the wrong location. The following commands resolves that issue. Just remember to add it to the Environment Variables.

curl -o /c/development/cacert.pem https://curl.haxx.se/ca/cacert.pem
export SSL_CERT_FILE="c:\development\cacert.pem"

**Note:** to solve permanently for all services open a PowerShell as an Administrator and issue Then use the following to add it to the Environment Variables

[Environment]::SetEnvironmentVariable("SSL_CERT_FILE", "c:\development\cacert.pem", "Machine")
Loading Google+ Comments ...