Fixed invalid CA certificate issue