Browse Source

Bad exception handling

v1
aeris 6 years ago
parent
commit
a212aa0711
  1. 3
      lib/cryptcheck/tls/server.rb

3
lib/cryptcheck/tls/server.rb

@ -284,8 +284,9 @@ module CryptCheck
@cert, @chain = ssl_client(method) { |s| [s.peer_cert, s.peer_cert_chain] }
Logger.debug { "Certificate #{@cert.subject}" }
break
rescue TLSTimeout, ::SystemCallError
rescue Timeout, TLSTimeout, ConnectionError, ::SystemCallError
raise
rescue
end
end
raise TLSNotAvailableException unless @cert

Loading…
Cancel
Save