Skip to content

Commit

Permalink
oldTlsProtocol: test using TLS 1.2 (as supported by the latest Chromium)
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed May 4, 2022
1 parent 4933f7c commit 647a467
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion modules/protocols/protocols.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (phantomas) {
phantomas.setMetric("mainDomainHttpProtocol"); // @desc HTTP protocol used by the main domain [string]
phantomas.setMetric("oldHttpProtocol"); // @desc number of domains using HTTP/1.0 or 1.1
phantomas.setMetric("mainDomainTlsProtocol"); // @desc TLS protocol used by the main domain [string]
phantomas.setMetric("oldTlsProtocol"); // @desc number of domains using TLS 1.1 or 1.2
phantomas.setMetric("oldTlsProtocol"); // @desc number of domains using TLS 1.2

// spy all requests
phantomas.on("recv", (entry) => {
Expand Down
26 changes: 13 additions & 13 deletions test/integration-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,28 +825,28 @@

# protocols
# http/1.1 (legacy one)
- url: "http://127.0.0.1:8888"
label: "localhost with http/1.1"
# options:
# ignore-ssl-errors: true
- url: "https://127.0.0.1:8889"
label: "localhost with http/1.1 and TLS 1.2"
options:
ignore-ssl-errors: true
metrics:
mainDomainHttpProtocol: "http/1.1"
oldHttpProtocol: 1
# mainDomainTlsProtocol: "TLS 1.1"
# oldTlsProtocol: 1
mainDomainTlsProtocol: "TLS 1.2"
oldTlsProtocol: 1
offenders:
oldHttpProtocol:
- {
domain: "http://127.0.0.1",
domain: "https://127.0.0.1",
httpVersion: "http/1.1",
requests: 1,
}
# oldTlsProtocol:
# - {
# domain: "https://127.0.0.1",
# tlsVersion: "TLS 1.1",
# beforeDomReady: true,
# }
oldTlsProtocol:
- {
domain: "https://127.0.0.1",
tlsVersion: "TLS 1.2",
beforeDomReady: true,
}

# http/2
- url: "https://127.0.0.1:9000"
Expand Down
3 changes: 1 addition & 2 deletions test/nginx-static.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ server {

ssl_certificate /etc/nginx/localhost.crt;
ssl_certificate_key /etc/nginx/localhost.key;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_protocols TLSv1.1;
ssl_protocols TLSv1.2;

root /static;

Expand Down

0 comments on commit 647a467

Please sign in to comment.