Skip to content

Commit

Permalink
Consider DNS entries only
Browse files Browse the repository at this point in the history
  • Loading branch information
wndhydrnt committed Jun 8, 2017
1 parent fafbdf8 commit 58fb106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/certificate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def names_changed?(cert, names)
san_extension = cert.extensions.find { |e| e.oid == 'subjectAltName' }
return false if san_extension.nil?

current = san_extension.value.split(', ').map { |v| v.split(':')[1] }
current = san_extension.value.split(', ').select { |v| v.start_with?('DNS:') }.map { |v| v.split(':')[1] }
!(names - current).empty? || !(current - names).empty?
end

Expand Down

0 comments on commit 58fb106

Please sign in to comment.