SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

John Reese jtr at ofb.net
Sat Jul 16 16:46:13 EDT 2005


Morning.  I've been running into an error message pertaining to SSL
that I don't understand, and I was hoping someone had some insight.
Gmail provides POP access over SSL on port 587, so I tried to use
poplib.POP_SSL, with the following results:

%python
Python 2.4.1 (#1, May 16 2005, 15:19:29) 
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from poplib import POP3_SSL
>>> pop= POP3_SSL('pop.gmail.com', 587)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/poplib.py", line 359, in __init__
    self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
  File "/usr/lib/python2.4/socket.py", line 74, in ssl
    return _realssl(sock, keyfile, certfile)
socket.sslerror: (1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol')
>>> 

Any suggestions or insight?



More information about the Python-list mailing list