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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium

Issue 2434933002: wptserve: Document how to re-generate keys and certs. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium
index e1de41b5910b7d599c26e8555263f86f36101a3f..268973e630e18c2d13471454b4902d3e57449df7 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/README.chromium
@@ -48,6 +48,62 @@ The explicit list of files being kept, everything else not on this list is
deleted when running "./checkout.sh reduce". Use this file to control what gets
checked in and try to keep the list as small as possible (use what you need).
+certs/
+======
+This directory contains a private key and a certificate of WPTServe, and files
+for self-signed CA. WPTServe generates them on the fly with "openssl" command in
+the default setting, but we check in pre-generated files to avoid "openssl"
qyearsley 2016/10/20 16:34:39 Possible minor rephrasing: "WPTServe generates the
tkent 2016/10/24 04:14:40 I'll make a CL for this.
+dependency.
+
+These certificates will expire in January 2025. Here is an instruction to
+re-generate them:
+
+1. Add "openssl" command to PATH.
+2. Apply the following change locally:
+
+diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt.config.json b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt.config.json
+index 6243954..84fd3f4 100644
+--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt.config.json
++++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt.config.json
+@@ -9,13 +9,5 @@
+ "https": [8444],
+ "ws": [9001],
+ "wss": [9444]
+- },
+- "ssl": {
+- "type": "pregenerated",
+- "encrypt_after_connect": false,
+- "pregenerated": {
+- "host_key_path": "../certs/127.0.0.1.key",
+- "host_cert_path": "../certs/127.0.0.1.pem"
+- }
+ }
+ }
+diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/sslutils/openssl.py b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/sslutils/openssl.py
+index 5b571c0..223a18b 100644
+--- a/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/sslutils/openssl.py
++++ b/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/sslutils/openssl.py
+@@ -207,7 +207,7 @@ class OpenSSLEnvironment(object):
+
+ def __init__(self, logger, openssl_binary="openssl", base_path=None,
+ password="web-platform-tests", force_regenerate=False,
+- duration=30, base_conf_path=None):
++ duration=3000, base_conf_path=None):
+ """SSL environment that creates a local CA and host certificate using OpenSSL.
+
+ By default this will look in base_path for existing certificates that are still
+
+3. Run third_party/WebKit/Tools/Scripts/run-blink-wptserve
+4. Type Enter key to terminate it.
+5. Revert the local change. e.g. git reset --hard HEAD
+6. Replace certs/ with wpt/_certs/
+ % rm -fr certs
+ % mv wpt/_certs certs
+7. Look at *.pem, and update "January 2025" in this document to new expiration
+ date.
+8. git commit -a
+9. git cl upload, etc.
+
**
Rolling in WPT
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698