Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/websocket-client-simple/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def connect(url, options={})
cert_store = OpenSSL::X509::Store.new
cert_store.set_default_paths
ctx.cert_store = cert_store
ctx.cert = OpenSSL::X509::Certificate.new(File.read(options[:cert_chain_file])) || nil
ctx.key = OpenSSL::PKey::RSA.new(File.read(options[:private_key_file])) || nil
@socket = ::OpenSSL::SSL::SSLSocket.new(@socket, ctx)
@socket.connect
end
Expand Down