Fix bad SSL certificate handling when pushing data