-
Notifications
You must be signed in to change notification settings - Fork 984
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
SSL Verification failed on Windows #392
Comments
I was able to work around this issue by setting the environment variable |
that is the correct solution to the problem, faraday has nothing to do with it, see oneclick/rubyinstaller#226 |
i have same issue with ubuntu system with facebook authentication. |
@timcy I suspect your issue is unrelated. Unless there is some proposal for a built-in workaround I think this issue should be closed. It's still present but I can confirm it has nothing to do with faraday; I'm confirming it's a windows/ruby-installer issue. |
@briceo Thanks for sharing the workaround! I'm afraid there's not much we can do from Faraday. Developers who need to connect to sites over HTTPS are responsible for ensuring that root certificates are already in place. |
@briceo Hi, can you give a more specific solution to this problem? I'm on windows and also have this problem. But I already have |
The problem is SSL_CERT_FILE (or maybe it was some other environment variable) needs to be an aboslute path for some reason, and that path is hard coded into something that was generated by whoever compiled that component of the rails installer. Grab the root certs from somewhere else, save them locally, then point to them. EG: |
It appears that when trying to use Faraday on Windows to communicate with a site that is SSL, a certificate verify failed error occurs:
This same example works correctly from a linux system, and retrieves the expected webpage with no errors.
The text was updated successfully, but these errors were encountered: