mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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 <jouni@codeaurora.org>
This commit is contained in:
parent
a758a66725
commit
1046145093
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user