wget fails by a certificate problem

The thread: Problem with certificates helped me to solve the problem.

user mirabilos explain the commands to reinstall the ca-certificates

sudo apt-get install --reinstall ca-certificates
sudo apt-get -f install
sudo dpkg --purge --force-depends ca-certificates
sudo apt-get -f install

I have installed it. It worked for Ubuntu 16.4 LTS

sudo apt-get install ca-certificates