On Fri, Dec 28, 2018 at 10:07 PM Jeffrey Walton <[email protected]> wrote: > > The sample wgetrc is missing info on ca_directory . Also see > https://www.gnu.org/software/wget/manual/html_node/Sample-Wgetrc.html. > > I also cannot figure out how to tell Wget to use cacert.pem. I've > tried ca_cert, ca_certs and ca_certfile but it produces: > > wget: Unknown command ‘ca_file’ in /opt/bootstrap/etc/wgetrc at line 141 > Parsing system wgetrc file failed.
My bad... I found it. openssl.c used "opt.ca_cert", so I was trying to use the same in rc file. The correct name is ca_certificate. Tim, you may want this when Wget is built against OpenSSL. It makes Wget/OpenSSL behave like Wget/GnuTLS: https://github.com/noloader/Build-Scripts/blob/master/bootstrap/wget.patch . Jeff
