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

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

Issue 1059303002: Don't process HSTS/HPKP headers when host is an IP address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ugly workaround for mac 10.6 getaddrinfo bug 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
« no previous file with comments | « net/data/ssl/scripts/generate-aia-certs.sh ('k') | net/data/ssl/scripts/generate-policy-certs.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/ssl/scripts/generate-cross-signed-certs.sh
diff --git a/net/data/ssl/scripts/generate-cross-signed-certs.sh b/net/data/ssl/scripts/generate-cross-signed-certs.sh
index f5a7024911f928c36f3665c32b83e1e531db4178..23d20e2973e38e877563567d65ff42294442580a 100755
--- a/net/data/ssl/scripts/generate-cross-signed-certs.sh
+++ b/net/data/ssl/scripts/generate-cross-signed-certs.sh
@@ -19,12 +19,7 @@
# MD5root, or leaf -> MD5root -> SHA256root
try() {
- echo "$@"
- "$@" || exit 1
-}
-
-quiet_try() {
- "$@" || exit 1
+ "$@" || (e=$?; echo "$@" > /dev/stderr; exit $e)
}
try rm -rf out
@@ -85,9 +80,9 @@ CA_COMMON_NAME="Test Dup-Hash Root CA" \
-out out/ok_cert.pem \
-config ca.cnf
-quiet_try openssl x509 -text \
+try openssl x509 -text \
-in out/2048-md5-root.pem > ../certificates/cross-signed-root-md5.pem
-quiet_try openssl x509 -text \
+try openssl x509 -text \
-in out/2048-sha256-root.pem > ../certificates/cross-signed-root-sha256.pem
-quiet_try openssl x509 -text \
+try openssl x509 -text \
-in out/ok_cert.pem > ../certificates/cross-signed-leaf.pem
« no previous file with comments | « net/data/ssl/scripts/generate-aia-certs.sh ('k') | net/data/ssl/scripts/generate-policy-certs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698