-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Option to ignore certificate errors #61
Comments
Currently there is no way to ignore cert errors. |
Planned to be implemented in next version. |
Hi @NARKOZ, I just encountered the same issue as the one mention by @onionjake. I therefore started looking at your code and I saw that you are using HTTParty. Actually, HTTParty provides some settings to cope with certificates (https://github.com/jnunemaker/httparty/blob/master/lib/httparty/connection_adapter.rb#L140), for instance you can ignore unsigned ones. A good approach would be to let users provide HTTParty options when creating a client or a session. What do you think? I just forked your project, I'll try this option out and let you know. |
Please implement this feature! |
hey @chriscool I did implement it, check at https://github.com/barraq/gitlab.git |
introduce HTTParty-configuration, fix #61
My Gitlab uses HTTPS with a self-signed certificate, so when I try to connect using this gem I get this error:
/usr/lib/ruby/1.9.1/net/http.rb:800:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
Is there a way to ignore the certificate error? If not, could one be added?
The text was updated successfully, but these errors were encountered: