You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/skeleton/https.md
+2-52Lines changed: 2 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,56 +6,6 @@ The issue with self-signed certificates is browsers (quite rightly) deem them un
6
6
7
7
## Using a local certificate authority (CA)
8
8
9
-
[The general recommended approach for not relying on self-signed certificates is to set up a local CA](https://web.dev/how-to-use-local-https/). There are several tools for doing this, but perhaps the easiest is [mkcert](https://github.com/FiloSottile/mkcert).
9
+
You should not use a local certificate authority to have a signed certificate that is validated. A local CA will contaminate your trusted CAs. This means, if your local environment is compromised, or mkcert, then your entire HTTPS trust chain can easily be compromised too. It is for this reason we do not set this up by default and cannot recommend this approach.
10
10
11
-
Before some basic instructions for setting this up, here is some information/disclaimer:
12
-
13
-
**Installing a local CA is at your own risk. Although it will only be trusted by you, a local CA will contaminate your trusted CAs. This means, if your local environment is compromised, or mkcert, then your entire HTTPS trust chain can easily be compromised too. It is for this reason we do not set this up by default and cannot recommend this approach.**
14
-
15
-
If you're comfortable with all that and still want to go ahead, here's how you can do it with mkcert.
16
-
17
-
### Install mkcert
18
-
19
-
On Mac:
20
-
```bash
21
-
brew install mkcert
22
-
brew install nss # if you use Firefox
23
-
```
24
-
25
-
For other platforms see: https://github.com/FiloSottile/mkcert#installation
There are, this page from the chromium site lists a few other things you might want to try also: https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins#TOC-Testing-Powerful-Features
11
+
If you require a trusted local certificate, you should raise this with your project lead to outline the reasons for the requirements and discuss potential solutions. Setting up a local CA should be considered a last resort, though documented solutions to do this are easily found online you should carefuly consider the risks.
Copy file name to clipboardExpand all lines: docs/skeleton/troubleshooting.md
+2-14Lines changed: 2 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,10 @@
2
2
3
3
## WP install fails
4
4
5
-
Sometimes the WordPress install in the `bin/install` script can fail. This is usually fixed by increasing the sleep time:
5
+
Sometimes the WordPress install in the `bin/install` script can fail. This is usually fixed by increasing the sleep time to allow the MySQL server to start accepting connections.
6
6
7
7
```bash
8
8
# ...
9
-
echo'Please hold...';
10
-
11
9
sleep 10;# Increase this and retry, it may need to go as high as 30.
12
10
# ...
13
11
```
@@ -16,22 +14,16 @@ sleep 10; # Increase this and retry, it may need to go as high as 30.
docker-compose -f docker-compose.yml -f docker-compose-styleguide.yml up -d;
30
-
else
31
24
- docker-compose build;
32
25
+ docker-compose build --no-cache;
33
26
docker-compose up -d;
34
-
fi
35
27
```
36
28
37
29
## Permission errors
@@ -45,10 +37,6 @@ If you are on a Linux machine, you will need to uncomment the following within t
45
37
46
38
> Note: You will need to stop and rebuild the containers when changing env vars, e.g. `docker-compose stop; docker-compose up --build`
47
39
48
-
## Certificate warnings
49
-
50
-
On chrome you will need to type `thisisunsafe` to bypass the certificate warning (make sure your cursor isn't in the url bar). Othe browsers usually give you a button you can use to bypass.
0 commit comments