ruby-rdf/json-ld

Certificate verification errors

markwilkinson opened this issue · 1 comments

Hi Gregg!

I'm a bit stuck. I suspect this isn't a "bug", just a configuration problem, but I don't know how to solve it.

I have a Ruby script running in Apache that uses JSON::LD::Reader. Everything is fine until I attempt to pull things out of the graph, at which point it throws a "certification error". As I understand it, it validates the @context nodes, which is where I have a problem. http://schema.org is redirected to https://schema.org, and this then fails WHEN RUNNING IN THE SERVER with the error: FATAL Failed to parse input document: loading remote context failed: http://schema.org/: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate): Called from /home/mark_moby_wilkinson/.rvm/gems/ruby-2.5.1/gems/json-ld-3.0.2/lib/json/ld/reader.rb:70

If I run it in a terminal window, it has no problem, so I assume that in my own user environment the libraries can see/provide whatever certificates they need. Inside of Apache, apparently they cannot. I'm not sure exactly what they are looking for (my Apache is configured for https, if that matters).

Can you suggest a place to begin the debugging?

Thank you!

Mark

It's a server config issue, clearly not your problem. Sorry!