¿Cómo le digo a la biblioteca OpenSSL de Ruby que ignore un error de certificado autofirmado?
Estoy tratando de usar el soporte SOAP de Ruby de la siguiente manera:
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
pero la llamada anew(SERVICE_URL)
explota con "OpenSSL::SSL::SSLError: certificate verify failed
"¿Cómo hago el equivalente dedriver.options['protocol.http.ssl_config.verify_mode'] = OpenSSL::SSL::VERIFY_NONE
¿Por la primera llamada para recuperar el WSDL?