Skip to content

Commit

Permalink
Removed intermediate certificate from Let's Encrypt chain
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhesko committed Feb 9, 2024
1 parent d876476 commit 1164fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testsuite/tests/mgc/test_external_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def exposer(base_domain, hub_gateway) -> Exposer:
"""DNSPolicyExposer setup with expected TLS certificate"""
external_cert = resources.files("testsuite.resources").joinpath("letsencrypt-stg-root-x1.pem").read_text()
old_cert = hub_gateway.get_tls_cert()
return DNSPolicyExposer(base_domain, tls_cert=dataclasses.replace(old_cert, chain=external_cert))
# Removed irrelevant intermediate certificate used for backwards compatibility
trimmed_cert = old_cert.certificate.rsplit("-----BEGIN CERTIFICATE-----", 1)[0]
return DNSPolicyExposer(base_domain, tls_cert=dataclasses.replace(old_cert, chain=trimmed_cert+external_cert))


def test_smoke_letsencrypt(client):
Expand Down

0 comments on commit 1164fbc

Please sign in to comment.