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

SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) #16

Open
krzcho opened this issue Oct 17, 2023 · 2 comments

Comments

@krzcho
Copy link

krzcho commented Oct 17, 2023

Is there any chance your lib has influence on SSL_CERT_FILE?
I have all certs in my file and still I have this error :(
(corpo is doing SSL hijacking and is putting it's cert in the chain but I have it there in my pem file as well)
Any ideas?
Could you make SSL bypass cert check when production=false?

@krzcho
Copy link
Author

krzcho commented Oct 19, 2023

I have monkey patched savor_options to include ssl_verify_mode: :none but still:

irb(main):003:0> GusBir1.find_and_get_full_data(nip: 5261040828)
D, [2023-10-19T12:59:21.529813 #2316] DEBUG -- : HTTPI /none GET request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
D, [2023-10-19T12:59:21.686729 #2316] DEBUG -- : HTTPI /none GET request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
D, [2023-10-19T12:59:21.833458 #2316] DEBUG -- : HTTPI /none POST request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
D, [2023-10-19T12:59:22.000950 #2316] DEBUG -- : HTTPI /none GET request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
D, [2023-10-19T12:59:22.153483 #2316] DEBUG -- : HTTPI /none GET request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
D, [2023-10-19T12:59:22.290558 #2316] DEBUG -- : HTTPI /none POST request to wyszukiwarkaregontest.stat.gov.pl (httpclient)
=> []

what is wrong?

@krzcho
Copy link
Author

krzcho commented Oct 19, 2023

ok , i have used production key in test env; now it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant