title: SSL Certificates - OS X Mavericks
body: <p>I am trying to connect to application on localhost which uses SSL. I am using Mac OS X Mavericks. The error I am getting is following: </p>
  
  <pre><code>Error sending cURL get request to https://dev.site.com:5555/version  
  Error code: 60 Error msg: SSL certificate problem: Invalid certificate chain
  </code></pre>
  
  <p>I tried to add certificates to the chain:</p>
  
  <pre><code>/usr/bin/security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /etc/path/ca_key.pem 
  </code></pre>
  
  <p>Still getting the same error. </p>