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

Unified Diff: net/data/verify_certificate_chain_unittest/generate-expired-root.py

Issue 2233233002: Refactor some certificate verification tests in preparation to adding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trust_anchor
Patch Set: fix Created 4 years, 4 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
Index: net/data/verify_certificate_chain_unittest/generate-expired-root.py
diff --git a/net/data/verify_certificate_chain_unittest/generate-expired-root.py b/net/data/verify_certificate_chain_unittest/generate-expired-root.py
index ff086571bff81ae76a6dc97084381a965a681bf7..12115a1828e7420b400f81f463ba473a23f67fe0 100755
--- a/net/data/verify_certificate_chain_unittest/generate-expired-root.py
+++ b/net/data/verify_certificate_chain_unittest/generate-expired-root.py
@@ -9,7 +9,7 @@ constraints on trust anchors are not enforced.."""
import common
-# Self-signed root certificate (part of trust store).
+# Self-signed root certificate (used as trust anchor).
root = common.create_self_signed_root_certificate('Root')
root.set_validity_range(common.JANUARY_1_2015_UTC, common.MARCH_1_2015_UTC)
@@ -23,7 +23,7 @@ target = common.create_end_entity_certificate('Target', intermediate)
target.set_validity_range(common.JANUARY_1_2015_UTC, common.JANUARY_1_2016_UTC)
chain = [target, intermediate]
-trusted = [root]
+trusted = common.TrustAnchor(root, constrained=False)
# Both the target and intermediate are valid at this time, however the
# root is not. This doesn't matter since the root certificate is

Powered by Google App Engine
This is Rietveld 408576698