correct check for ssl