Browse Source

Bad exception handling

master
aeris 3 years ago
parent
commit
b89c8972ba
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/cryptcheck/tls/server.rb

+ 3
- 1
lib/cryptcheck/tls/server.rb View File

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

Loading…
Cancel
Save