ca-certificates: ca-certificates prepopulation.

Cherry picked changes from the master branch for new and improved version of the ca-certificates package. Fix an issue with the installation step for the target image.