[Klug-general] curl and ssl on windows

Dan Attwood danattwood at gmail.com
Thu Apr 19 10:38:38 UTC 2012


OK not a Linux question as such but I'm hoping someone might have come
up against this and solved it.

I'm running apache, mysql and php on a windows box - not my choice to
use windows but I have not way round it.

I've just a installed a new server for testing with this setup and
found that curl doesn't have the ca-bundle with it anymore. The only
solution around this I can find at the moment is to download the
cert-bundle.pem file from the curl website, rename it and that call it
manually in a script:


curl_setopt($ch, CURLOPT_CAINFO, "s:/certs/cacert.crt");

which is fine - sort of- for any code i write myself but for 3rd party
Moodle modules this isn't an option.

Does anyone know the correct way to load the certs at boot up so that
it's available to php/ apache?



More information about the Kent mailing list