title: Accessing SOAP client using Savon gem
body: <p>I am trying to access a SOAP service using the Savon gem (<a href="http://savonrb.com/" rel="nofollow">http://savonrb.com/</a>)</p>
  
  <p>The SOAP service certificates for authentication.</p>
  
  <p>I generated a certificate using openssl as follows:
  <code>
  openssl req -x509 -nodes -days 365 -sha256 -newkey rsa:2048 -keyout name.pem -out name.pem
  </code></p>
  
  <p>The ruby code is as follows:</p>
  
  <pre><code>savonConfig = {
      :wsdl =&gt; 'http://www......?wsdl',
      :log_level =&gt; :debug,
      :log =&gt; true,
      :ssl_verify_mode =&gt; :client_once,
      ssl_version: :SSLv3,
      :ssl_cert_file =&gt; './name.pem',
      :ssl_cert_key_file =&gt; './name.pem',
      :ssl_cert_key_password =&gt; 'password',
      :open_timeout =&gt; 600,
      :read_timeout =&gt; 600
  }
  client = Savon.client savonConfig
  response = client.call(:request_message, message: {})
  </code></pre>
  
  <p>When I try hit the SOAP service I get:</p>
  
  <pre><code>client.call(:get_something, message: {}): 
  Savon::UnknownOperationError: Unable to find SOAP operation: :get_something
  </code></pre>
  
  <p>I have tried the same code with a SOAP service that does not require authentication and it works fine. So my assumption is that I have done something wrong with the certificate</p>
  
  <p>I have combined the key and certificate into one, however when I split it out it still gives me this issue.</p>
  
  <p>Any ideas on what could be wrong?</p>