openssl - Savon connecting to SoapUI SSL Mock Service -


i'm trying proof of concept ruby can call soap web services using savon through ssl. i'm noob @ apologize errors in advance.

i followed tutorial following link have soapui create mock ssl service keystore: http://www.soapui.org/soap-mocking/tips-and-tricks/securing-mockservices-with-ssl.html

here ruby code looks @ moment:

client = savon.client(                 wsdl: "http://www.webservicex.net/currencyconvertor.asmx?wsdl",                 endpoint: "https://localhost:8002/mockcurrencyconvertorsoap",                        ssl_version: :sslv3,                 ssl_cert_key_file: "lib/private-key.key",                 ssl_cert_file: "lib/public-key.pub",                  ssl_ca_cert_file: "lib/trust-soapui.pem",                 ssl_cert_key_password: "password",                 ssl_verify_mode: :peer,                 adapter: :httpclient,                 log_level: :debug,                 log: true,                 logger: rails.logger,                 pretty_print_xml: true             )      response = client.call(:conversion_rate,                     message: {"fromcurrency" => "usd", "tocurrency" => "jpy"}     ) 

here error receiving:

httpi::sslerror (hostname not match server certificate)

i believe might have fundamentally created keys incorrectly though came same keystore.jks soapui mock service using. missing?

note: work if set

ssl_verify_mode: :none
check if certs correct.

i'm on windows 7 pro using railsinstaller.

ruby 1.9.3
rails 3.2.11
savon 2.11.1
httpclient 2.6.0.1


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -