Created
October 15, 2014 10:59
-
-
Save mryoshio/fde07e8b68ff35745188 to your computer and use it in GitHub Desktop.
check your elbs if against SSLv3 (POODLE)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws' | |
AWS.config( | |
:access_key_id => 'xxx', | |
:secret_access_key => 'xxx', | |
:region => 'ap-northeast-1' | |
) | |
elb = AWS::ELB.new | |
elb.load_balancers.each do |e| | |
e.listeners.each do |l| | |
if l.port == 80 | |
puts "#{e.name} => not SSL" | |
else | |
puts "#{e.name} => #{l.policy.attributes['Reference-Security-Policy']}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment