Fix ssl certificate issues