ssl certificate check with curl