Revert "ignore invalid ssl-cert"

This reverts commit c8c664a70d11b8f3e2c7a3d1c34a9f98708ee49f.