Skip to content

Commit 0ef1deb

Browse files
Adding self-signed certificates for Firefox (#456)
1 parent c164ce1 commit 0ef1deb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,12 @@ To use a proxy server, set the following environment variable: `PANTHER_CHROME_A
503503
To force Chrome to accept invalid and self-signed certificates, set the following environment variable: `PANTHER_CHROME_ARGUMENTS='--ignore-certificate-errors'`
504504
**This option is insecure**, use it only for testing in development environments, never in production (e.g. for web crawlers).
505505

506+
For Firefox, instantiate the client like this:
507+
508+
```php
509+
$client = Client::createFirefoxClient(null, null, ['capabilities' => ['acceptInsecureCerts' => true]]);
510+
```
511+
506512
### Docker Integration
507513

508514
Here is a minimal Docker image that can run Panther with both Chrome and Firefox:

0 commit comments

Comments
 (0)