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

Logstash jruby-openssl tripping on expired DST Root CA X3 #13261

Closed
3 of 6 tasks
jsvd opened this issue Oct 1, 2021 · 2 comments · Fixed by #13355
Closed
3 of 6 tasks

Logstash jruby-openssl tripping on expired DST Root CA X3 #13261

jsvd opened this issue Oct 1, 2021 · 2 comments · Fixed by #13355
Labels

Comments

@jsvd
Copy link
Member

jsvd commented Oct 1, 2021

With the expiration of the "DST Root CA X3" certificate Logstash is observing failures in multiple locations:

It may be that jruby-openssl doesn't prioritize non-expired certs when building a chain (jruby/jruby-openssl#236), but further investigation is required.
Depending on the ability to sort this out in jruby-openssl we may need to work around by using manticore instead of Faraday or Net::HTTP, since manticore uses java's httpclient and sidesteps jruby-openssl

kaisecheng added a commit to kaisecheng/logstash that referenced this issue Oct 1, 2021
update golang image to 1.17.1 to get rid of expired DST Root CA X3
disable download manager test cases to silent Faraday::SSLError

Fixed: elastic#13261

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
kaisecheng added a commit to kaisecheng/logstash that referenced this issue Oct 1, 2021
update golang image to 1.17.1 to get rid of expired DST Root CA X3
disable download manager test cases to silent Faraday::SSLError

Fixed: elastic#13261

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
@jsvd jsvd reopened this Oct 1, 2021
kaisecheng added a commit that referenced this issue Oct 1, 2021
update golang image to 1.17.1 to get rid of expired DST Root CA X3
disable download manager test cases to silent Faraday::SSLError

Fixed: #13261

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
kaisecheng added a commit that referenced this issue Oct 1, 2021
update golang image to 1.17.1 to get rid of expired DST Root CA X3
disable download manager test cases to silent Faraday::SSLError

Fixed: #13261

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
@gose
Copy link

gose commented Oct 4, 2021

Is there a workaround until a fix is released?

@gose
Copy link

gose commented Oct 7, 2021

This doesn't fix the JRuby problem, but if you're using Let's Encrypt and hitting this issue, you can get around it by specifying the preferred chain to use with --preferred-chain "ISRG Root X1" as per:

jruby/jruby-openssl#236 (comment)

Before:

$ openssl s_client -showcerts -connect <your-domain.com>:443
CONNECTED(00000005)
depth=1 O = Digital Signature Trust Co., CN = DST Root CA X3
verify error:num=10:certificate has expired
notAfter=Sep 30 14:01:15 2021 GMT
verify return:0
...

After:

$ openssl s_client -showcerts -connect <your-domain.com>:443
CONNECTED(00000005)
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = <your-domain.com>
verify return:1
...

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

Successfully merging a pull request may close this issue.

3 participants