Skip to content
Browse files

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

  • Loading branch information...
1 parent 42f5e26 commit 2ff6b4c9e43bf95ea2237e5ba1d39e1e88d12be1 mindscratch committed with May 7, 2012
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

0 comments on commit 2ff6b4c

Please sign in to comment.
Something went wrong with that request. Please try again.