【发布时间】:2009-10-12 14:48:09
【问题描述】:
我正在尝试使用 Ruby 的 SOAP 支持,如下所示:
SERVICE_URL = 'https://...'
...
def create_driver
::SOAP::WSDLDriverFactory.new(SERVICE_URL).create_rpc_driver
driver.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE
driver.options['protocol.http.ssl_config.client_cert'] = @certificate_path
driver
end
但是对new(SERVICE_URL) 的调用会以“OpenSSL::SSL::SSLError: certificate verify failed”结束。对于第一次调用检索 WSDL 本身,我如何执行相当于 driver.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE 的操作?
【问题讨论】:
标签: ruby soap wsdl openssl certificate