docs(browsers): add note about 'self signed certificate in certificate chain' Error (#15221)

This commit is contained in:
Max Schmitt 2022-06-29 13:49:22 +02:00 committed by GitHub
parent f95b3a40e8
commit 461bd92f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,6 +405,20 @@ $env:HTTPS_PROXY="https://192.0.2.1"
pwsh bin\Debug\netX\playwright.ps1 install
```
If the requests of the proxy get intercepted with a custom untrusted certificate authority (CA) and it yields to `Error: self signed certificate in certificate chain` while downloading the browsers, you must set your custom root certificates via the [`NODE_EXTRA_CA_CERTS`](https://nodejs.org/api/cli.html#node_extra_ca_certsfile) environment variable before installing the browsers:
```bash tab=bash-bash
export NODE_EXTRA_CA_CERTS="/path/to/cert.pem"
```
```batch tab=bash-batch
set NODE_EXTRA_CA_CERTS="C:\certs\root.crt"
```
```powershell tab=bash-powershell
$env:NODE_EXTRA_CA_CERTS="C:\certs\root.crt"
```
## Download from artifact repository
By default, Playwright downloads browsers from Microsoft CDN.