From 53c5cd4e1a8bb2fcf44b1f3ca320b6970090cd82 Mon Sep 17 00:00:00 2001 From: Jakub Kucharski Date: Wed, 29 Oct 2025 12:01:57 +0100 Subject: [PATCH] RDBC-964 Fix SSLError in https test --- .github/workflows/RavenClient.yml | 2 +- ravendb/tests/jvm_migrated_tests/https_tests/test_https.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/RavenClient.yml b/.github/workflows/RavenClient.yml index 25d7c5d6..63407d8a 100644 --- a/.github/workflows/RavenClient.yml +++ b/.github/workflows/RavenClient.yml @@ -54,7 +54,7 @@ jobs: - run: mkdir certs - run: openssl genrsa -out certs/ca.key 2048 - - run: openssl req -new -x509 -key certs/ca.key -out certs/ca.crt -subj "/C=US/ST=Arizona/L=Nevada/O=RavenDB Test CA/OU=RavenDB test CA/CN=localhost/emailAddress=ravendbca@example.com" + - run: openssl req -new -x509 -key certs/ca.key -out certs/ca.crt -subj "/C=US/ST=Arizona/L=Nevada/O=RavenDB Test CA/OU=RavenDB test CA/CN=localhost/emailAddress=ravendbca@example.com" -addext "basicConstraints = CA:TRUE" -addext "keyUsage = digitalSignature,keyCertSign" - run: openssl genrsa -out certs/localhost.key 2048 - run: openssl req -new -key certs/localhost.key -out certs/localhost.csr -subj "/C=US/ST=Arizona/L=Nevada/O=RavenDB Test/OU=RavenDB test/CN=localhost/emailAddress=ravendb@example.com" -addext "subjectAltName = DNS:localhost" - run: openssl x509 -req -extensions ext -extfile cert/test_cert.conf -in certs/localhost.csr -CA certs/ca.crt -CAkey certs/ca.key -CAcreateserial -out certs/localhost.crt diff --git a/ravendb/tests/jvm_migrated_tests/https_tests/test_https.py b/ravendb/tests/jvm_migrated_tests/https_tests/test_https.py index 66212547..efcfbeb9 100644 --- a/ravendb/tests/jvm_migrated_tests/https_tests/test_https.py +++ b/ravendb/tests/jvm_migrated_tests/https_tests/test_https.py @@ -174,6 +174,7 @@ def test_can_use_server_generated_certificate(self): tmp = tempfile.mkstemp() with open(tmp[1], "wb") as file: file.write(key[0].encode("utf-8")) + file.write(b"\n") file.write(key[1]) store_with_out_cert.certificate_pem_path = tmp[1] store_with_out_cert.initialize() @@ -196,6 +197,7 @@ def test_should_throw_authorization_exception_when_not_autorized(self): tmp = tempfile.mkstemp() with open(tmp[1], "wb") as file: file.write(key.encode("utf-8")) + file.write(b"\n") file.write(cert) store_wit_out_cert.certificate_pem_path = tmp[1] store_wit_out_cert.initialize()