| Index: net/data/verify_certificate_chain_unittest/generate-basic-constraints-pathlen-0-self-issued.py
|
| diff --git a/net/data/verify_certificate_chain_unittest/generate-basic-constraints-pathlen-0-self-issued.py b/net/data/verify_certificate_chain_unittest/generate-basic-constraints-pathlen-0-self-issued.py
|
| index 03c6eb50d71b101cbae35eddff239e5e31caba68..55f649f4755f39e0de58d6c086fda4fc61e4cb3b 100755
|
| --- a/net/data/verify_certificate_chain_unittest/generate-basic-constraints-pathlen-0-self-issued.py
|
| +++ b/net/data/verify_certificate_chain_unittest/generate-basic-constraints-pathlen-0-self-issued.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. The first intermediary has a basic
|
| +"""Certificate chain with 2 intermediates. The first intermediate has a basic
|
| constraints path length of 0. The second one is self-issued so does not count
|
| against the path length."""
|
|
|
| @@ -12,22 +12,22 @@ import common
|
| # Self-signed root certificate (part of trust store).
|
| root = common.create_self_signed_root_certificate('Root')
|
|
|
| -# Intermediary with pathlen 0
|
| -intermediary1 = common.create_intermediary_certificate('Intermediary', root)
|
| -intermediary1.get_extensions().set_property('basicConstraints',
|
| +# Intermediate with pathlen 0
|
| +intermediate1 = common.create_intermediate_certificate('Intermediate', root)
|
| +intermediate1.get_extensions().set_property('basicConstraints',
|
| 'critical,CA:true,pathlen:0')
|
|
|
| -# Another intermediary (with the same pathlen restriction).
|
| +# Another intermediate (with the same pathlen restriction).
|
| # Note that this is self-issued but NOT self-signed.
|
| -intermediary2 = common.create_intermediary_certificate('Intermediary',
|
| - intermediary1)
|
| -intermediary2.get_extensions().set_property('basicConstraints',
|
| +intermediate2 = common.create_intermediate_certificate('Intermediate',
|
| + intermediate1)
|
| +intermediate2.get_extensions().set_property('basicConstraints',
|
| 'critical,CA:true,pathlen:0')
|
|
|
| # 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 = True
|
|
|