windows下Jekyll添加jekyll-gist后,启动服务发生异常,异常示例如下:

Liquid Exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed in d:/workspace_php/runphp.github.io/_posts/ruby/2015-11-26-welcome-to-jekyll.md
jekyll 3.0.1 | Error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

解决方案

  1. 下载http://curl.haxx.se/ca/cacert.pem
  2. 复制到C:\Windows\
  3. 运行下面命令:
export SSL_CERT_FILE=c:/windows/cacert.pem
  1. 重新运行jekyll serve