I am using the deleteMessages procedure found in qfs.qft to delete messages on an exchange server. This procedure worked previously with an exchange 2003 server that did not require SSL. The server has been upgraded to 2010 and requires SSL now. I modified
the procedure to use the POP3_SSL package instead of POP3. I however cannot connect through QFTest, I get the following error:
Could not connect to pop3 server <server_name>:
Error: (-1, 'SSL handshake exception')
I can connect to the server using a python terminal outside of QFTest:
> python
Python 2.4.3 (#1, May 1 2012, 13:55:48)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import poplib
>>> p = poplib.POP3_SSL(server_name)
>>> p.getwelcome()
'+OK The Microsoft Exchange POP3 service is ready.'
I then downloaded jython version 2.5.1 and ran the same commands
> ./jython
*sys-package-mgr*: processing new jar, '/dg/local/cots/jython.2.5.1/jython.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/resources.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/rt.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/jsse.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/jce.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/charsets.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/ext/localedata.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/ext/dnsns.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/ext/sunjce_provider.jar'
*sys-package-mgr*: processing new jar, '/dg/local/cots/jdk1.6.0_43_x64/jre/lib/ext/sunpkcs11.jar'
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_43
Type "help", "copyright", "credits" or "license" for more information.
>>> import poplib
>>> p = poplib.POP3_SSL(server_name)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/dg/local/cots/jython.2.5.1/Lib/poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
File "/dg/local/cots/jython.2.5.1/Lib/socket.py", line 1479, in ssl
return _realssl(sock, keyfile, certfile)
File "/dg/local/cots/jython.2.5.1/Lib/socket.py", line 1428, in __init__
raise _map_exception(jlx)
socket.sslerror: (-1, 'SSL handshake exception')
I can also connect fine if I use openssl in the terminal
>openssl s_client -connect server_name:995
Verify return code: 0 (ok)
---
+OK The Microsoft Exchange POP3 service is ready.
The issue appears to be with jython (I have tried with 2.5.1 and 2.5.2) or I am missing something when using jython's packages as opposed to python's packages. Has anyone seen this? Any ideas as to what is going on?
Thanks,
Charlie
This electronic communication and any attachments may contain confidential and proprietary
information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee
responsible for delivering this communication to the intended recipient, or if you have received
this communication in error, please do not print, copy, retransmit, disseminate or
otherwise use the information. Please indicate to the sender that you have received this
communication in error, and delete the copy you received. DigitalGlobe reserves the
right to monitor any electronic communication sent or received by its employees, agents
or representatives.
|