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

Unified Diff: net/data/verify_certificate_chain_unittest/root-bad-eku/generate-chains.py

Issue 2931053002: Add extra path validation tests for EKU processing (Closed)
Patch Set: Remove the comment changes from this CL Created 3 years, 6 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/root-bad-eku/generate-chains.py
diff --git a/net/data/verify_certificate_chain_unittest/root-bad-eku/generate-chains.py b/net/data/verify_certificate_chain_unittest/root-bad-eku/generate-chains.py
deleted file mode 100755
index e58cd0adf85794cf64afe9beb6abd185d4958bcb..0000000000000000000000000000000000000000
--- a/net/data/verify_certificate_chain_unittest/root-bad-eku/generate-chains.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/python
-# Copyright (c) 2017 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.
-
-"""Certificate chain with 1 intermediate and a trust anchor. The trust anchor
-has an EKU that restricts it to clientAuth. Verification is expected to fail as
-the end-entity is verified for serverAuth, and the trust anchor enforces
-constraints."""
-
-import sys
-sys.path += ['..']
-
-import common
-
-# Self-signed root certificate (used as trust anchor) with non-CA basic
-# constraints.
-root = common.create_self_signed_root_certificate('Root')
-root.get_extensions().set_property('extendedKeyUsage', 'clientAuth')
-
-# Intermediate certificate.
-intermediate = common.create_intermediate_certificate('Intermediate', root)
-
-# Target certificate.
-target = common.create_end_entity_certificate('Target', intermediate)
-
-chain = [target, intermediate, root]
-common.write_chain(__doc__, chain, 'chain.pem')

Powered by Google App Engine
This is Rietveld 408576698