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

Unified Diff: net/data/ssl/scripts/generate-test-certs.sh

Issue 1094983002: Account for the OS returning an empty certificate chain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/ssl/scripts/generate-test-certs.sh
diff --git a/net/data/ssl/scripts/generate-test-certs.sh b/net/data/ssl/scripts/generate-test-certs.sh
index b0fd908b9a3e80583e6f1b0d8cd79afe8b93345e..452ed10f91bcded53fc46530e5f138f4e7208a70 100755
--- a/net/data/ssl/scripts/generate-test-certs.sh
+++ b/net/data/ssl/scripts/generate-test-certs.sh
@@ -150,6 +150,13 @@ SUBJECT_NAME="req_dn" \
-config ../scripts/ee.cnf -newkey rsa:2048 -text \
-out ../certificates/reject_intranet_hosts.pem
+## Leaf certificate with a large key; Apple's certificate verifier rejects with
+## a fatal error if the key is bigger than 4096 bits.
+try openssl req -x509 -days 3650 \
+ -config ../scripts/ee.cnf -newkey rsa:4098 -text \
+ -sha256 \
+ -out ../certificates/large_key.pem
+
## Validity too long unit test support.
try openssl req -config ../scripts/ee.cnf \
-newkey rsa:2048 -text -out ../certificates/10_year_validity.req
« net/cert/cert_verify_proc_unittest.cc ('K') | « net/data/ssl/certificates/large_key.pem ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698