aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_certutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_certutils.py')
-rw-r--r--test/test_certutils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py
index 176575ea..2d8c7841 100644
--- a/test/test_certutils.py
+++ b/test/test_certutils.py
@@ -67,6 +67,13 @@ class TestCertStore:
c3 = ca.get_cert("bar.com", [])
assert not c1 == c3
+ def test_sans_change(self):
+ with tutils.tmpdir() as d:
+ ca = certutils.CertStore.from_store(d, "test")
+ _ = ca.get_cert("foo.com", ["*.bar.com"])
+ cert, key = ca.get_cert("foo.bar.com", ["*.baz.com"])
+ assert "*.baz.com" in cert.altnames
+
def test_overrides(self):
with tutils.tmpdir() as d:
ca1 = certutils.CertStore.from_store(os.path.join(d, "ca1"), "test")