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

Letsencrypt certificate issues #1347

Closed
jbanahan opened this issue Dec 16, 2021 · 0 comments · Fixed by #1348
Closed

Letsencrypt certificate issues #1347

jbanahan opened this issue Dec 16, 2021 · 0 comments · Fixed by #1348

Comments

@jbanahan
Copy link
Contributor

Basic Info

The version of openssl used in jruby is causing problems when attempting connections with endpoints which use Letsencrypt

Fix is included in later version:
https://github.com/jruby/jruby-openssl/releases/tag/v0.11.0

  • Faraday Version: latest
  • Ruby Version: jruby:9.2.20.0

Issue description

After changing a certificate from AWS issued to LetsEncrypt for an API endpoint, we had the following error:
Error: Faraday::SSLError: Received fatal alert: handshake_failure

After updating everything I could and disabling verify mode:
Error: Faraday::TimeoutError: Net::ReadTimeout

Steps to reproduce

This doesn't use Faraday directly, but it's using the openssl library which is included

uri = URI.parse("https://mysite.net")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE // Attempt to stop this

request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)

puts response
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

Successfully merging a pull request may close this issue.

1 participant