Skip to content

Commit

Permalink
doc: handle window add certificate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arthaud-proust committed Mar 8, 2024
1 parent e630762 commit 1f71192
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
## Trusting the Authority

With a standard installation, the authority used to sign certificates generated in the Caddy container is not trusted by your local machine.
You must add the authority to the trust store of the host :
You must add the authority to the trust store of the host:

```
# Mac
$ docker cp $(docker compose ps -q php):/data/caddy/pki/authorities/local/root.crt /tmp/root.crt && sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/root.crt
# Linux
$ docker cp $(docker compose ps -q php):/data/caddy/pki/authorities/local/root.crt /usr/local/share/ca-certificates/root.crt && sudo update-ca-certificates
# Windows
# Execute as admin in terminal (not powershell)
$ docker compose cp php:/data/caddy/pki/authorities/local/root.crt %TEMP%/root.crt && certutil -addstore -f "ROOT" %TEMP%/root.crt
```

Expand Down

0 comments on commit 1f71192

Please sign in to comment.