SSL certificate error
It's your self-signed certificate that you should add to your CA bundle. Otherwise, curl can't know it can be trusted.
I finally found the location on OSX (10.8) : /usr/share/curl/cacert.pemso I added my self-signed certificate to it, and the restarted my node-ssl server..
then curl command is now running fine wo the -k option
curl -v --user 1234567890:abcdefghijklmnopqrstuvwxyz --data "grant_type=password&username=yves&password=123456789" https://macMini.local:8000/oauth/token* About to connect() to macMini.local port 8000 (#0)* Trying 192.168.1.14...* connected* Connected to macMini.local (192.168.1.14) port 8000 (#0)* successfully set certificate verify locations:* CAfile: /usr/share/curl/cacert.pem CApath: none...
On mac, I was getting similar ssl relating error while trying to install composer.
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
for the command
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
But I successfully installed it by running the command
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/composer/
as per instructed here.