Index: net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py |
diff --git a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py |
index bda9c25d9eedebf69846d36764f44591a9a0d1a4..149c000cff6b4dfe826327e3459a5ccb8c0c0565 100755 |
--- a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py |
+++ b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py |
@@ -3,7 +3,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-"""Certificate chain with 2 intermediaries and one end entity certificate. The |
+"""Certificate chain with 2 intermediates and one end entity certificate. The |
root certificate has a pathlen:1 restriction so this is an invalid chain.""" |
import common |
@@ -13,17 +13,17 @@ root = common.create_self_signed_root_certificate('Root') |
root.get_extensions().set_property('basicConstraints', |
'critical,CA:true,pathlen:1') |
-# Intermediary 1 (no pathlen restriction). |
-intermediary1 = common.create_intermediary_certificate('Intermediary1', root) |
+# Intermediate 1 (no pathlen restriction). |
+intermediate1 = common.create_intermediate_certificate('Intermediate1', root) |
-# Intermediary 2 (no pathlen restriction). |
-intermediary2 = common.create_intermediary_certificate('Intermediary2', |
- intermediary1) |
+# Intermediate 2 (no pathlen restriction). |
+intermediate2 = common.create_intermediate_certificate('Intermediate2', |
+ intermediate1) |
# Target certificate. |
-target = common.create_end_entity_certificate('Target', intermediary2) |
+target = common.create_end_entity_certificate('Target', intermediate2) |
-chain = [target, intermediary2, intermediary1] |
+chain = [target, intermediate2, intermediate1] |
trusted = [root] |
time = common.DEFAULT_TIME |
verify_result = False |