1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/tools/wpt/certs/README.md

31 lines
976 B
Markdown
Raw Normal View History

## To regenerate certificates
1. Apply:
```
diff --git a/tools/wptserve/wptserve/sslutils/openssl.py b/tools/wptserve/wptserve/sslutils/openssl.py
index 87a8cc9cc7..bbf500d8ca 100644
--- a/tools/wptserve/wptserve/sslutils/openssl.py
+++ b/tools/wptserve/wptserve/sslutils/openssl.py
@@ -216,7 +216,7 @@ basicConstraints = CA:true
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
keyUsage = keyCertSign
-%(constraints_line)s
+#%(constraints_line)s
""" % {"root_dir": root_dir,
"san_line": san_line,
"duration": duration,
```
2. `cd test_util/wpt/`
3. `./wpt serve --config tools/certs/config.json`
4. Run:
```
cp test_util/wpt/tools/certs/cacert.key tools/wpt/certs/cacert.key
cp test_util/wpt/tools/certs/cacert.pem tools/wpt/certs/cacert.pem
cp test_util/wpt/tools/certs/web-platform.test.key tools/wpt/certs/web-platform.test.key
cp test_util/wpt/tools/certs/web-platform.test.pem tools/wpt/certs/web-platform.test.pem
```