Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#15048 closed defect (fixed)

curl +ssl doesn't install curl-ca-bundle.crt since 7.18

Reported by: dp macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Curl stopped packaging a certificate file in version 7.18.0 (see http://curl.haxx.se/docs/sslcerts.html). As a result, a clean install of curl +ssl from MacPorts can't verify SSL certificates.

The simplest fix is just to use the file Apple installs. Add one line to the Portfile:

variant ssl {
    depends_lib-append      port:openssl
    configure.args-delete   --without-ssl
    configure.args-append   --with-ca-bundle=/usr/share/curl/curl-ca-bundle.crt
}

Change History (5)

comment:1 Changed 17 years ago by dp macports@…

It might be cleaner to call /usr/bin/curl-config --ca to get the path to the certificate file.

I'm unclear about MacPorts support for other platforms, but this would have to be resolved some other way there.

comment:2 Changed 17 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…

Assigning to maintainer.

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Status: newassigned

I think I want to handle this by using the "ca-bundle" make target. But that invokes a perl script which downloads "certdata.txt" from mozilla.org. To ensure that everyone gets the same version of this file, we should download it outselves by including it in the portfile's distfiles. But that file seems to change often, and I can't find a URL to download a specific version of the file, only the current file. Right now I'm inclined to make a separate port just for the ca-bundle, so that whenever it changes, users don't also have to rebuild all of curl.

comment:4 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r36259. A new version of curl should show up within 12 hours via sudo port selfupdate && port outdated

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.