Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated for issue #38 (Private key password can't be set).

  • Loading branch information...
commit 2ff6b4c9e43bf95ea2237e5ba1d39e1e88d12be1 1 parent 42f5e26
mindscratch authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/stomp/connection.rb
View
2  lib/stomp/connection.rb
@@ -714,7 +714,7 @@ def open_ssl_socket
ctx.cert = OpenSSL::X509::Certificate.new(File.read(@ssl.cert_file))
raise Stomp::Error::SSLNoKeyFileError if !File::exists?(@ssl.key_file)
raise Stomp::Error::SSLUnreadableKeyFileError if !File::readable?(@ssl.key_file)
- ctx.key = OpenSSL::PKey::RSA.new(File.read(@ssl.key_file))
+ ctx.key = OpenSSL::PKey::RSA.new(File.read(@ssl.key_file), @ssl.key_password)
end
# Cipher list
Please sign in to comment.
Something went wrong with that request. Please try again.