SSL Certificates - OS X Mavericks
curl, macos, ssl, ssl-certificate
Solution
`--cacert` and `--cert` are broken in OSX Mavericks.
You can read more about it here: https://groups.google.com/forum/#!topic/munki-dev/oX2xUnoQEi4
The workaround is here: http://curl.haxx.se/mail/archive-2013-10/0036.html which indicates that you need to import the certificate as a trusted system cert:
Import the certificate into the system ("System") or user ("login") keychain using Keychain Access and mark it as always trusted for SSL and X.509 basic policy.
Problem
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: ``` Error sending cURL get request to https://dev.site.com:5555/version Error code: 60 Error msg: SSL certificate problem: Invalid certificate chain ``` I tried to add certificates to the chain: ``` /usr/bin/security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /etc/path/ca_key.pem ``` Still getting the same error.