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
OpenSSL host verification + hostname in certificate CN only seems broken in 7.82.0 #8559
Comments
Gah, you're absolutely correct. |
@bagder any chance for a quick release with this fix? |
I don't think this is a serious enough bug to warrant a patch release. Work-arounds:
Publicly trusted CA:s have required the presence of a subjectAltName since 2012, so CN-only certs are only present in private CA:s, According to telemetry from Chrome in 2017, only 1.57% of privately-trusted CA certificates rely on this behavior (using CN only). |
Thanks for the impressively quick confirmation and fix! |
current curl issue curl/curl#8559
current curl issue curl/curl#8559
See curl/curl#8559 * #[ignore] related unittest * Use ".ignore" suffix on integration test to disable * Re-enable other tests for arch linux
Actually this breaks tests for GNU libmicrohttpd, so many package builders are broken. It would be nice to make a new release to fix it. Any ETA? |
It was mentioned here, 27 April |
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Upstream bug: curl/curl#8559
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Fixes curl/curl#8559 Change-Id: Ib5e9da27d7804c3af1af057a7b187bb1306c2f69 Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16066 Reviewed-by: Harinadh Dommaraju <hdommaraju@vmware.com> Reviewed-by: Dweep Advani <dadvani@vmware.com> Tested-by: Tapas Kundu <tkundu@vmware.com>
Fix out of memory [1] OpenSSL host verification + hostname in certificate CN only seems broken in 7.82.0 [1] curl/curl#8559 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Fix out of memory [1] OpenSSL host verification + hostname in certificate CN only seems broken in 7.82.0 [1] curl/curl#8559 (From OE-Core rev: 7a8d374a3d4bbef336be2b273afc00c93c637ae6) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
This test covers the bug in libcurl that resulted in crash when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would crash. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
This test covers the bug in libcurl that resulted in crash when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would crash. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
This test covers the bug in libcurl that resulted in crash when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would crash. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
This test covers the bug in libcurl that resulted in crash when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would crash. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
This test covers the bug in libcurl that resulted in crash when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would crash. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
This test covers the bug in libcurl that results in Out of memory exception when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would quit. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet (as of July 2022). Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
This test covers the bug in libcurl that results in Out of memory exception when dealing with HTTPS server with self-signed certificate. When certificate lacks SAN fieds, libcurl would quit. Github error: curl/curl#8559 The bug was fixed in libcurl: curl/curl#8560 The fix is not propagated to all distros yet (as of July 2022). Signed-off-by: Milosz Wasilewski <milosz.wasilewski@foundries.io>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
curl/curl#8559. Fixes libmicrohttpd testsuite
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
…en in 7.82.0 Backport upstream fix for: curl/curl#8559 Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
I did this
I have an HTTPS server where the hostname is only in subject CN of the certificate, not in the SAN list. This is deprecated, but as far as I can tell still expected to work. Using a newly built 7.82.0 and the public server certificate placed in
/tmp/curltest/cacerts
I see this:I expected the following
Using the same CA dir and HTTPS server, my OS installed version works fine:
Discussion
I suspect the problem is the
result = CURLE_OUT_OF_MEMORY;
introduced in commitd15692ebb
. I am guessing that this line is meant to deal with theOPENSSL_malloc()
just above failing? This patch makes 7.82.0 work as expected for me:curl/libcurl version
See above
operating system
The text was updated successfully, but these errors were encountered: