I'm trying to create a package that, as part of its make, downloads some stuff through curl. Most work but one in particular is failing due to certificates (see below). This works if I do it on the command line. I tried adding 'cacert' to my buildInputs and parameters, but that didn't seem to work. What is the correct solution? Still quite new to Nix so apologies if this is a common question, I didn't find anything in my google searches.
Thanks, /M curl -OL https://gforge.inria.fr/frs/download.php/31595/dose3-3.1.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. make[2]: *** [dose3-3.1.2.tar.gz] Error 60 _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev