| Index: net/data/verify_certificate_chain_unittest/generate-target-wrong-signature.py | 
| diff --git a/net/data/verify_certificate_chain_unittest/generate-target-wrong-signature.py b/net/data/verify_certificate_chain_unittest/generate-target-wrong-signature.py | 
| new file mode 100755 | 
| index 0000000000000000000000000000000000000000..e221844018e1f317b1262ceea671c168e56cc4a4 | 
| --- /dev/null | 
| +++ b/net/data/verify_certificate_chain_unittest/generate-target-wrong-signature.py | 
| @@ -0,0 +1,35 @@ | 
| +#!/usr/bin/python | 
| +# Copyright (c) 2015 The Chromium Authors. All rights reserved. | 
| +# Use of this source code is governed by a BSD-style license that can be | 
| +# found in the LICENSE file. | 
| + | 
| +import os | 
| +import sys | 
| + | 
| +sys.path.insert(0, os.path.dirname(__file__)) | 
| +import common | 
| + | 
| +description = """Simple certificate where the target has an incorrect | 
| +signature.""" | 
| + | 
| +common.Init(__file__) | 
| + | 
| +# Self-signed root certificate (part of trust store). | 
| +root = common.CreateSelfSignedRootCertificate('Root') | 
| + | 
| +# Intermediary certificate. | 
| +intermediary = common.CreateIntermediaryCertificate('Intermediary', root) | 
| + | 
| +# Intermediary with same name but different key. This is what the target is | 
| +# actually signed with, but it is NOT the intermediary included in the chain. | 
| +wrong_intermediary = common.CreateIntermediaryCertificate('Intermediary', root) | 
| + | 
| +# Target certificate. | 
| +target = common.CreateEndEntityCertificate('Target', wrong_intermediary) | 
| + | 
| +chain = [target, intermediary] | 
| +trusted = [root] | 
| +time = common.DEFAULT_TIME | 
| +verify_result = False | 
| + | 
| +common.WriteTestFile(description, chain, trusted, time, verify_result) | 
|  |