Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the SSL CA cert while testing the website locally using github-pages. #6758

Closed
6 of 7 tasks
sahilarora535 opened this issue Feb 8, 2018 · 9 comments
Closed
6 of 7 tasks

Comments

@sahilarora535
Copy link

sahilarora535 commented Feb 8, 2018

  • I believe this to be a bug, not a question about using Jekyll.
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I ran jekyll doctor to check my configuration
  • I read the CONTRIBUTION file at https://jekyllrb.com/docs/contributing/
  • I am on (or have tested on) Debian/Ubuntu GNU/Linux
  • I was trying to build.
  • It was another bug.

My Reproduction Steps

My Gemfile looks like this:

source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
  1. bundle update
  2. bundle exec jekyll serve

Apart from that, I also tried bundle exec jekyll build. All of them give the same error.

The Output I Wanted

I wanted my site to build or server locally, none of which is happening correctly as mentioned above.

Here is what I get instead when I run bundle exec jekyll server:

Configuration file: /home/sahil/ws/kamandprompt.github.io/_config.yml
            Source: /home/sahil/ws/kamandprompt.github.io
       Destination: /home/sahil/ws/kamandprompt.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
      Remote Theme: Using theme mmistakes/minimal-mistakes
jekyll 3.6.2 | Error:  Problem with the SSL CA cert (path? access rights?)

When I run bundle exec jekyll doctor, I get the same error:

Configuration file: /home/sahil/ws/kamandprompt.github.io/_config.yml
      Remote Theme: Using theme mmistakes/minimal-mistakes
jekyll 3.6.2 | Error:  Problem with the SSL CA cert (path? access rights?)

Here is the link to the issue I filed on the pages-gem repository: github/pages-gem#529

@pathawks
Copy link
Member

pathawks commented Feb 8, 2018

Possibly related: #3985 #4413

@DirtyF
Copy link
Member

DirtyF commented Feb 8, 2018

/cc @mmistakes but I don't think the problem is related to the remote theme here.

@mmistakes
Copy link

@DirtyF That's correct. As far as I can tell the problem isn't Jekyll or the remote theme gem, but getting libcurl to install properly.

@sahilarora535
Copy link
Author

@DirtyF @mmistakes I tried some debugging here. I created a new repository using jekyll new, and converted it to github-pages by deleting other gems and installing the github-pages gem:

gem "github-pages", group: :jekyll_plugins

In this new repository, the jekyll serve command worked, but not in my original repository as I have reported in the issue.

@mmistakes
Copy link

mmistakes commented Feb 8, 2018

@sahilarora535 It works with jekyll new because that is using theme: minima. In your first test you were using a remote_theme, which pulls down the theme files as a .zip and extracts them.

libcurl is used to download those files, and there's some sort of certificate issue with that and how the remote theme gem grabs those files. Seems like you have libcurl install properly but are getting bit by an invalid SSL certificate.

I've had the same problem but couldn't fix it. Maybe this info here will help you.

@mmistakes
Copy link

Related: benbalter/jekyll-remote-theme#9

@sahilarora535
Copy link
Author

Aah I would have never been able to figure out the error was related to curl. I have apparently solved it by installing libcurl4-openssl-dev using apt:

sudo apt install libcurl4-openssl-dev

Now the site builds locally. Though I am getting this Github API error:

GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.

I think this can be fixed easily.

Thanks a lot, closing the issue! 😃

@sahilarora535
Copy link
Author

@mmistakes You can probably try this fix I mentioned above if this may work on the error mentioned by you here: benbalter/jekyll-remote-theme#9

@mmistakes
Copy link

Thanks @sahilarora535, I've tried everything I can think of. Unfortunately the version of Windows I'm using doesn't have apt to easily install curl and libcurl with.

@jekyll jekyll locked and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants