This is the second time I had to figure this out, so I’m documenting it for prosperity. It’s certainly nothing special, but I’m sure that others have wasted time searching for the solution as well. Assuming you’re using Macports, read on.
I’ve been automating a bunch of stuff with various rake tasks in a Rails project. One task in particular, has a line similar to the following:
curl --user email@example.com:password https://foo.com/db.sql > db.sql
Which, when run, yields the following error:
curl: (1) Protocol https not supported or disabled in libcurl
To fix it, do the following:
sudo port deactivate curl
sudo port install curl +ssl