def run
ssl_opts = Stomp::SSLParams.new(
:key_file => "/home/gmallard/sslwork/2013/client.key",
:cert_file => "/home/gmallard/sslwork/2013/client.crt",
:ts_files => "/home/gmallard/sslwork/2013/TestCA.crt",
:fsck => true
)
hash = { :hosts => [
{:login => 'guest', :passcode => 'guest', :host => 'localhost', :port => 61612, :ssl => ssl_opts},
],
:reliable => false,
}
puts "Connect starts, SSL Use Case 4"
c = Stomp::Connection.new(hash)
puts "Connect completed"
puts "SSL Verify Result: #{ssl_opts.verify_result}"
c.disconnect
end