Raise correct SSL error