plu / Pithub

Perl Github v3 API

Home Page:http://metacpan.org/module/Pithub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Pithub on Mac

mhanif opened this issue · comments

Hi @plu, Thanks for providing the Perl wrapper for Github API. I would like to use this on Mac. I have installed it using CPAN and now I am checking it out using the examples you have provided. However, I am getting some error and don't know how to resolve it. Is there anything I need to setup before I call these examples? Anyways, here is what I get:

show_commit.pl mojolicious/mojo@ad0b3b3
could not fetch the commit from Github: mojolicious/mojo@ad0b3b3
list_repos.pl
something is fishy: 500 Can't verify SSL peers without knowning which Certificate Authorities to trust

I set the env variable using

export PERL_LWP_SSL_VERIFY_HOSTNAME=0

and it did the trick and it is working now. But, is there a better way to do it?

Thanks.

I don't have these kind of problems, the verification for github.com's SSL cert should just work out of the box.

Just a few questions trying to nail down the reason:

  • Do you have Mozilla::CA installed? If not, please install it and try again.
  • Did you set HTTPS_CA_FILE Or HTTPS_CA_DIR by any chance? If so, please unset it and try again.