Monday 26 July 2010

Using https with wget

The version of wget installed on a debian box seems to not like doing https by default due to not knowing about the CA certificates.

Here's a solution I found:

Download cacert.pem from http://curl.haxx.se/docs/caextract.html and put it in /etc/ssl/certs

Then amend /etc/wgetrc to add the line

ca_certificate=/etc/ssl/certs/cacert.pem

Then wget knows about the CA certificates and all is well for https

2 comments:

Unknown said...

Does wget not understand the per CA certificate format (in /etc/ssl/certs) maintained by the ca-certificates package?

Nick Porter said...

Ah - that'll be the package that was evading my hunting!