Forums MAMPStack

curl configuration is wonk (1.0-beta-4)

Subscribe to curl configuration is wonk (1.0-beta-4) 3 post(s), 2 voice(s)

 
Avatar Thom 9 post(s)

The curl included in 1.0-beta-4 has the certificate paths set erroneously:

% ../mampstack-1.0-beta-4/common/bin/curl-config—ca
/bitnami/mampstack/output/common/share/curl/curl-ca-bundle.crt

This means that I get an error 60 from curl when trying to access a site via https.

error setting certificate verify locations: CAfile: /bitnami/mampstack/output/common/share/curl/curl-ca-bundle.crt CApath: none

I don’t know if this is set at compile time (I hope not, but one never knows), but the install needs to have some way to set it. I can set it on the command line (or using curl_setopt for CURLOPT_CAINFO in PHP), but that’s hardly portable.

Thanks,
Thom

 
Avatar Thom 9 post(s)

It looks like this was also broken in beta 1. In 0.9.4, the CA cert location wasn’t set at all:

% ./mampstack-0.9.4/common/bin/curl-config—ca

%

(That’s an empty line.)

Thom

 
Avatar beltran Administrator 417 post(s)

Hi Thom,

Thanks for report this issue. It seems that the certificate location is configured during the compilation. We will try to fix for the next release using a wrapper.

Cheers.

Forums MAMPStack