-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
Tests fail with openssl 3 due to test certificates not meeting current standards #8701
Labels
Comments
AdamWill
added a commit
to AdamWill/distributed
that referenced
this issue
Jun 19, 2024
make_tls_certs.py has not been updated significantly since 2018, and the certs it generates are not good enough for openssl 3: E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020) This resyncs the generation script with the current version of cpython's make_ssl_certs.py, on which it is based. I dropped various superficial changes which were made (wrapping, spacing, quote style), because they make diffing it against the original to see what's *really* different unnecessarily hard. This also updates all the certificates, of course, which makes the tests work against openssl 3. Signed-off-by: Adam Williamson <[email protected]>
AdamWill
added a commit
to AdamWill/distributed
that referenced
this issue
Jun 19, 2024
make_tls_certs.py has not been updated significantly since 2018, and the certs it generates are not good enough for openssl 3: E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020) This resyncs the generation script with the current version of cpython's make_ssl_certs.py, on which it is based. I dropped various superficial changes which were made (wrapping, spacing, quote style), because they make diffing it against the original to see what's *really* different unnecessarily hard. This also updates all the certificates, of course, which makes the tests work against openssl 3. Signed-off-by: Adam Williamson <[email protected]>
2 tasks
QuLogic
pushed a commit
to QuLogic/distributed
that referenced
this issue
Jun 20, 2024
make_tls_certs.py has not been updated significantly since 2018, and the certs it generates are not good enough for openssl 3: E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020) This resyncs the generation script with the current version of cpython's make_ssl_certs.py, on which it is based. I dropped various superficial changes which were made (wrapping, spacing, quote style), because they make diffing it against the original to see what's *really* different unnecessarily hard. This also updates all the certificates, of course, which makes the tests work against openssl 3. Signed-off-by: Adam Williamson <[email protected]>
QuLogic
pushed a commit
to QuLogic/distributed
that referenced
this issue
Jun 21, 2024
make_tls_certs.py has not been updated significantly since 2018, and the certs it generates are not good enough for openssl 3: E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020) This resyncs the generation script with the current version of cpython's make_ssl_certs.py, on which it is based. I dropped various superficial changes which were made (wrapping, spacing, quote style), because they make diffing it against the original to see what's *really* different unnecessarily hard. This also updates all the certificates, of course, which makes the tests work against openssl 3. Signed-off-by: Adam Williamson <[email protected]>
QuLogic
pushed a commit
to QuLogic/distributed
that referenced
this issue
Jul 8, 2024
make_tls_certs.py has not been updated significantly since 2018, and the certs it generates are not good enough for openssl 3: E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Basic Constraints of CA cert not marked critical (_ssl.c:1020) This resyncs the generation script with the current version of cpython's make_ssl_certs.py, on which it is based. I dropped various superficial changes which were made (wrapping, spacing, quote style), because they make diffing it against the original to see what's *really* different unnecessarily hard. This also updates all the certificates, of course, which makes the tests work against openssl 3. Signed-off-by: Adam Williamson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue: When run against openssl 3, some of the tests that use the certificates in
distributed/tests
(tls-cert.pem
et al) fail, with errors like "Client certificate validation failed: Basic Constraints of CA cert not marked critical". Per this page, this is due to constraints in newer versions of openssl that the current certificate files do not meet.The last time the certificate generation script was really updated (apart from linting) appears to be 2021 (by openQA author @bmwiedemann ...small world!), and that was just to extend some validity periods. The last time it was really overhauled was f242303 in 2018. By comparison, the script it was based on - make_ssl_certs.py from cpython - has been updated several times to adapt to stricter constraints, including adding the
basicConstraints = critical,CA:false
directive we need here.Unfortunately the two scripts diverge enough that applying the updates to distributed's version isn't straightforward. I intend to look at it tomorrow, but am filing this in case someone else wants to get to it first, or I don't manage to do it.
Minimal Complete Verifiable Example:
Run the test suite with openssl 3.x, I think that should be enough. You'll get failures like:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: