Exception: Kontena::Websocket::SSLVerifyError
- Inherits:
-
SSLConnectError
- Object
- StandardError
- Error
- ConnectError
- SSLConnectError
- Kontena::Websocket::SSLVerifyError
- Defined in:
- lib/kontena/websocket/error.rb
Overview
Unable to establish SSL connection to server when using ssl_verify: true
Instance Attribute Summary collapse
-
#cert ⇒ Object
readonly
Returns the value of attribute cert.
-
#cert_chain ⇒ Object
readonly
Returns the value of attribute cert_chain.
Instance Method Summary collapse
-
#initialize(verify_result, cert = nil, cert_chain = nil, message = nil) ⇒ SSLVerifyError
constructor
A new instance of SSLVerifyError.
- #issuer ⇒ Object
- #subject ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(verify_result, cert = nil, cert_chain = nil, message = nil) ⇒ SSLVerifyError
Returns a new instance of SSLVerifyError.
31 32 33 34 35 36 |
# File 'lib/kontena/websocket/error.rb', line 31 def initialize(verify_result, cert = nil, cert_chain = nil, = nil) super() @verify_result = verify_result @cert = cert @cert_chain = cert_chain end |
Instance Attribute Details
#cert ⇒ Object (readonly)
Returns the value of attribute cert.
25 26 27 |
# File 'lib/kontena/websocket/error.rb', line 25 def cert @cert end |
#cert_chain ⇒ Object (readonly)
Returns the value of attribute cert_chain.
25 26 27 |
# File 'lib/kontena/websocket/error.rb', line 25 def cert_chain @cert_chain end |
Instance Method Details
#issuer ⇒ Object
42 43 44 |
# File 'lib/kontena/websocket/error.rb', line 42 def issuer @cert.issuer end |
#subject ⇒ Object
38 39 40 |
# File 'lib/kontena/websocket/error.rb', line 38 def subject @cert.subject end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/kontena/websocket/error.rb', line 46 def to_s "certificate verify failed: #{super}" end |