Install ca-certificates and update RubyGems.