Skip to content

Commit ca25131

Browse files
authored
Specify that https agents must use at least TLSv1.1 (#1951)
1 parent 5d8e131 commit ca25131

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/tall-crabs-enjoy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ggt": patch
3+
---
4+
5+
Restrict SSL/TLS to require TLSv1.1 or better. SSLv3 will no longer be supported.

src/services/http/http.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ const getContext = (options: HttpOptions): Context => {
3535
export const http = got.extend({
3636
agent: {
3737
http: new HttpAgent({ keepAlive: true }),
38-
https: new HttpsAgent({ keepAlive: true }),
38+
https: new HttpsAgent({
39+
keepAlive: true,
40+
minVersion: "TLSv1.1",
41+
}),
3942
},
4043
retry: {
4144
limit: 10,

0 commit comments

Comments
 (0)