From a82e4425e37cb028de7a06c231736b27cccb276a Mon Sep 17 00:00:00 2001 From: Alban Diquet Date: Sun, 17 Mar 2024 17:51:31 +0100 Subject: [PATCH] Fix test --- tests/cert_chain_verifier_test.py | 45 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/tests/cert_chain_verifier_test.py b/tests/cert_chain_verifier_test.py index 55c5919..3d369d2 100644 --- a/tests/cert_chain_verifier_test.py +++ b/tests/cert_chain_verifier_test.py @@ -15,31 +15,28 @@ def certificate_chain_as_x509() -> List[X509]: leaf_pem = ssl.get_server_certificate(("www.github.com", 443)) - # DigiCert TLS Hybrid ECC SHA384 2020 CA1 + # Sectigo ECC Domain Validation Secure Server CA intermediate_pem = """-----BEGIN CERTIFICATE----- -MIIEQzCCAyugAwIBAgIQCidf5wTW7ssj1c1bSxpOBDANBgkqhkiG9w0BAQwFADBh -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD -QTAeFw0yMDA5MjMwMDAwMDBaFw0zMDA5MjIyMzU5NTlaMFYxCzAJBgNVBAYTAlVT -MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxMDAuBgNVBAMTJ0RpZ2lDZXJ0IFRMUyBI -eWJyaWQgRUNDIFNIQTM4NCAyMDIwIENBMTB2MBAGByqGSM49AgEGBSuBBAAiA2IA -BMEbxppbmNmkKaDp1AS12+umsmxVwP/tmMZJLwYnUcu/cMEFesOxnYeJuq20ExfJ -qLSDyLiQ0cx0NTY8g3KwtdD3ImnI8YDEe0CPz2iHJlw5ifFNkU3aiYvkA8ND5b8v -c6OCAa4wggGqMB0GA1UdDgQWBBQKvAgpF4ylOW16Ds4zxy6z7fvDejAfBgNVHSME -GDAWgBQD3lA1VtFMu2bwo+IbG8OXsj3RVTAOBgNVHQ8BAf8EBAMCAYYw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