Skip to content

Commit

Permalink
Support TLS1.3
Browse files Browse the repository at this point in the history
Support for TLS1.3 added
  • Loading branch information
micheelengronne authored Mar 13, 2020
1 parent b346785 commit 08925b9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion controls/ssl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

#######################################################
# Protocol Tests #
# Valid protocols are: tls1.2 #
# Valid protocols are: tls1.2, tls1.3 #
# Invalid protocols are : ssl2, ssl3, tls1.0, tls1.1 #
#######################################################
control 'ssl2' do
Expand Down Expand Up @@ -162,6 +162,21 @@
end
end

control 'tls1.3' do
title 'Enable TLS 1.3 on exposed ports.'
impact 0.5
only_if { sslports.length > 0 }

sslports.each do |sslport|
# create a description
proc_desc = "on node == #{target_hostname} running #{sslport[:socket].process.inspect} (#{sslport[:socket].pid})"
describe ssl(sslport).protocols('tls1.3') do
it(proc_desc) { should be_enabled }
it { should be_enabled }
end
end
end

#######################################################
# Key Exchange (Kx) Tests #
# Valid Kx(s) are: ECDHE #
Expand Down

0 comments on commit 08925b9

Please sign in to comment.