New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Update HTTPS guide #5366
Conversation
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
When you use the programming interface, pass the HTTPS server options to the [createTestCafe](../../reference/testcafe-api/global/createtestcafe.md) method. | ||
### Use a Self-Signed Certificate | ||
|
||
[Generate a self-signed certificate with `openssl`](#generate-a-certificate-from-the-command-line) if you launch tests from the command line. In the API, you can use the [openssl-self-signed-certificate](https://www.npmjs.com/package/openssl-self-signed-certificate) module to [generate a certificate in code](#generate-a-certificate-in-your-code). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already mention "In the API", why do you then add "in code"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want the link text to be descriptive. Is it better if I say:
To generate a certificate in code, you can use the openssl-self-signed-certificate module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To generate a certificate in code, use the openssl-self-signed-certificate module.
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
|
||
The examples below use a previously generated `.pfx` file to establish an HTTPS server. | ||
|
||
In ***Chrome*** and ***Chromium-Based*** Browsers, use `--allow-insecure-localhost` flag and [`--hostname`](../../reference/command-line-interface.md#--hostname-name) CLI parameter to make Chrome trust the certificate when tests run on localhost. If you use a different URL, use `--ignore-certificate-errors` flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In ***Chrome*** and ***Chromium-Based*** Browsers, use `--allow-insecure-localhost` flag and [`--hostname`](../../reference/command-line-interface.md#--hostname-name) CLI parameter to make Chrome trust the certificate when tests run on localhost. If you use a different URL, use `--ignore-certificate-errors` flag. | |
In ***Chrome*** and ***Chromium-Based*** Browsers, use the `--allow-insecure-localhost` flag and [`--hostname`](../../reference/command-line-interface.md#--hostname-name) CLI parameter to make Chrome trust the certificate when tests are run on localhost. If you use a different URL, use the `--ignore-certificate-errors` flag. |
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
docs/articles/documentation/guides/advanced-guides/test-https-features-and-http2-websites.md
Outdated
Show resolved
Hide resolved
When you use the programming interface, pass the HTTPS server options to the [createTestCafe](../../reference/testcafe-api/global/createtestcafe.md) method. | ||
### Use a Self-Signed Certificate | ||
|
||
[Generate a self-signed certificate with `openssl`](#generate-a-certificate-from-the-command-line) if you launch tests from the command line. In the API, you can use the [openssl-self-signed-certificate](https://www.npmjs.com/package/openssl-self-signed-certificate) module to [generate a certificate in code](#generate-a-certificate-in-your-code). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To generate a certificate in code, use the openssl-self-signed-certificate module.
83db31f
to
34b865c
Compare
fixes #5358