Skip to content

Commit 49374a0

Browse files
Support TLS1.3
Support for TLS1.3 added Signed-off-by: Michée Lengronne <[email protected]>
1 parent b346785 commit 49374a0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

controls/ssl_test.rb

+16-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
#######################################################
8686
# Protocol Tests #
87-
# Valid protocols are: tls1.2 #
87+
# Valid protocols are: tls1.2, tls1.3 #
8888
# Invalid protocols are : ssl2, ssl3, tls1.0, tls1.1 #
8989
#######################################################
9090
control 'ssl2' do
@@ -162,6 +162,21 @@
162162
end
163163
end
164164

165+
control 'tls1.3' do
166+
title 'Enable TLS 1.3 on exposed ports.'
167+
impact 0.5
168+
only_if { sslports.length > 0 }
169+
170+
sslports.each do |sslport|
171+
# create a description
172+
proc_desc = "on node == #{target_hostname} running #{sslport[:socket].process.inspect} (#{sslport[:socket].pid})"
173+
describe ssl(sslport).protocols('tls1.3') do
174+
it(proc_desc) { should be_enabled }
175+
it { should be_enabled }
176+
end
177+
end
178+
end
179+
165180
#######################################################
166181
# Key Exchange (Kx) Tests #
167182
# Valid Kx(s) are: ECDHE #

0 commit comments

Comments
 (0)