To fix the warning about your cPanel SSL certificate expiring soon, log in to WHM, go to "Home » Service Configuration » Manage Service SSL Certificates", and click on "Reset Certificate" for the respective service.