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
Fix error message in test_verify_fail_if_client_unknown_ca #2760
Conversation
Thanks for the PR.
|
@MSP-Greg thanks for the prompt reply.
Yes, I am testing against OpenSSL 3. In Ubuntu, we are moving to OpenSSL 3 right now. In Debian, there is an ongoing discussion about it, not sure about the outcome yet. IDK about the other distros.
You are right, not everyone will be using OpenSSL 3. In |
I hate it when that happens. Wonder when it will hit WSL2/Ubuntu (what I'm using locally)... I suppose I could build it, but... Sorry, I didn't look at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to the following should work. Sorry, intermittently AFK and now with coffee...
assert_ssl_client_error_match(/self[- ]signed certificate in certificate chain/, '/DC=net/DC=puma/CN=CAU') do |http|
95ac957
to
ca0f888
Compare
Thanks @MSP-Greg , I applied the suggested change. |
Thanks. Hate to ask, but it needs to be a regex, not a string... |
In Ubuntu, with OpenSSL 3, we have got the following error: 1) Failure: TestPumaServerSSLClient#test_verify_fail_if_client_unknown_ca [/tmp/autopkgtest.nnOHcD/build.YFu/src/test/test_puma_server_ssl.rb:306]: Expected /self\ signed\ certificate\ in\ certificate\ chain/ to match # encoding: ASCII-8BIT \# valid: true "OpenSSL certificate verification error: self-signed certificate in certificate chain - 19".
ca0f888
to
8dd435f
Compare
@MSP-Greg sorry :) it's fixed now. |
Description
In Ubuntu 22.04 (development release), we have got the following error:
Changing the expected error message from "self signed certificate" to "self-signed certificate" fixes the test failure.
Your checklist for this pull request
[ci skip]
to the title of the PR.#issue
" to the PR description or my commit messages.