Browse Source

Bad exception handling

new-scoring
aeris 2 years ago
parent
commit
a212aa0711
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/cryptcheck/tls/server.rb

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

@@ -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