From 1046145093df96ea6c0a1a4f9d8a1c18ad273ff8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 19 Jun 2020 00:36:44 +0300 Subject: [PATCH] tests: Copy subject from CSR to certificate Instead of overriding the subject field with something arbitrary, use the value that is included in the CSR now that there is something there. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index fa12c43de..e28e04f85 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -5628,8 +5628,7 @@ def dpp_sign_cert(cacert, cakey, csr_der): cert.gmtime_adj_notBefore(-10) cert.gmtime_adj_notAfter(100000) cert.set_pubkey(csr.get_pubkey()) - dn = cert.get_subject() - dn.CN = "dpp-tls-test" + dn = csr.get_subject() cert.set_subject(dn) cert.set_version(2) cert.add_extensions([