Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: net/data/cert_issuer_source_aia_unittest/generate-certs.py

Issue 2735733003: Disable commonName matching for certificates (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/x509_certificate_unittest.cc ('k') | net/data/cert_issuer_source_aia_unittest/i.pem » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/cert_issuer_source_aia_unittest/generate-certs.py
diff --git a/net/data/cert_issuer_source_aia_unittest/generate-certs.py b/net/data/cert_issuer_source_aia_unittest/generate-certs.py
index b758e5a69e564bfee57f8dc763c54267bafa27af..bda53fd2bda9a1ec956affebc49354b6e7e6c21c 100755
--- a/net/data/cert_issuer_source_aia_unittest/generate-certs.py
+++ b/net/data/cert_issuer_source_aia_unittest/generate-certs.py
@@ -85,30 +85,39 @@ section.set_property('caIssuers;URI.1', 'http://url-for-aia2/I2.foo')
# target certs
target = common.create_end_entity_certificate('target', i_base)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_one_aia.pem')
target = common.create_end_entity_certificate('target', i_no_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_no_aia.pem')
target = common.create_end_entity_certificate('target', i_two_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_two_aia.pem')
target = common.create_end_entity_certificate('target', i_three_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_three_aia.pem')
target = common.create_end_entity_certificate('target', i_six_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_six_aia.pem')
target = common.create_end_entity_certificate('target', i_file_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_file_aia.pem')
target = common.create_end_entity_certificate('target', i_invalid_url_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(), 'target_invalid_url_aia.pem')
target = common.create_end_entity_certificate('target', i_file_and_http_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(),
'target_file_and_http_aia.pem')
target = common.create_end_entity_certificate('target', i_invalid_and_http_aia)
+target.get_extensions().set_property('subjectAltName', 'DNS:target')
common.write_string_to_file(target.get_cert_pem(),
'target_invalid_and_http_aia.pem')
« no previous file with comments | « net/cert/x509_certificate_unittest.cc ('k') | net/data/cert_issuer_source_aia_unittest/i.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698