0

I am designing Jekyll site in localhost but when I add github_sample tag and try to include a code block from the repo I got this error:

Liquid Exception: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) in solution/solution.md
jekyll 3.8.6 | Error:  SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
Christian
  • 4,902
  • 4
  • 24
  • 42

1 Answers1

0

The error certificate verify failed (unable to get local issuer certificate) is an indication that the root certificates on the system are not working correctly and this does not seem to be a Jekyll issue.

Found a potential solution here:

Problem

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Solution

  1. Download https://curl.haxx.se/ca/cacert.pem
  2. Add a environment variable SSL_CERT_FILE values /path/to/cacert.pem
Christian
  • 4,902
  • 4
  • 24
  • 42
  • I added environment variable SSL_CERT_FILE but not working yet. – Bhavik Kothari Sep 01 '19 at 11:18
  • I have tested the theme locally with the [github sample](https://github.com/bwillis/jekyll-github-sample#example-usage) and could not see an ssl error. I think the problem is related to you ruby installation somehow. See [here](https://stackoverflow.com/questions/5720484/how-to-solve-certificate-verify-failed-on-windows), there is a good test with open-uri included. I suggest to go back to this page and try again installing ruby from the scratch (https://jekyllrb.com/docs/installation/windows/). The cacert.pem file is part of the ruby installer. – Christian Sep 01 '19 at 20:25