Doug Miller
Doug Miller

Reputation: 1037

SSL Connect Error

My company recently provided me with a modern MacBook Pro running OS X 10.9.5.

We have a ruby application that makes SOAP requests to an external service to authenticate users. Since the upgrade to the new machine, I get SSL Connect Error whenever trying to make a SOAP request.

I am using the ruby Savon Client to make the SOAP calls, though we are version locked to a pre-1.0 version. The savon client is configured to use the correct cert_file, cert_key_file, cert_key_password, and the ca_cert_file.

I have access to an older MacBook Pro that is running OS X 10.8.4. I have set the 10.8 machine up exactly the same as the 10.9 machine. When the 10.8 machine makes the exact same SOAP call, there are no SSL errors.

I am at an absolute loss for what the cause of the error could be. I'm assuming that it must be some system library but that's as far as my guess goes.

Upvotes: 0

Views: 592

Answers (1)

user1143682
user1143682

Reputation: 845

This issue happens on certain platforms/configurations. You can solve it with the following steps:

  1. Download this file and place it somewhere accessible: http://curl.haxx.se/ca/cacert.pem
  2. Set an environment variable called SSL_CERT_FILE. The contents of the environment variable should be the path to the cert file you downloaded.
  3. Close and re-open any terminal windows you have open.
  4. Try your script again.

Taken from the following website: http://richonrails.com/articles/solving-the-ssl-verify-problems

Upvotes: 1

Related Questions