2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2013


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] POP3 SSL Handshake Exception with Jython


  • Subject: Re: [QF-Test] POP3 SSL Handshake Exception with Jython
  • From: Charlie Olmstead <colmstea@?.com>
  • Date: Wed, 22 May 2013 15:43:15 +0000

In case anyone else has an issue connecting through SSL, I found this pure jython solution which worked great:
http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/

I found another possible solution at the link below which uses a java class to install an all trusting security provider.  It works outside of qftest but not within.  I did not try to figure out why since the pure jython solution worked.
http://jython.xhaus.com/installing-an-all-trusting-security-provider-on-java-and-jython/



-----Original Message-----
From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On Behalf Of qftest-list-request@?.de
Sent: Tuesday, May 21, 2013 04:00
To: qftest-list@?.de
Subject: qftest-list Digest, Vol 105, Issue 4

Send qftest-list mailing list submissions to
	qftest-list@?.de

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.qfs.de/mailman/listinfo/qftest-list
or, via email, send a message with subject or body 'help' to
	qftest-list-request@?.de

You can reach the person managing the list at
	qftest-list-owner@?.de

When replying, please edit your Subject line so it is more specific than "Re: Contents of qftest-list digest..."


Today's Topics:

   1. POP3 SSL Handshake Exception with Jython (Charlie Olmstead)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 May 2013 21:47:54 +0000
From: Charlie Olmstead <colmstea@?.com>
To: "qftest-list@?.de" <qftest-list@?.de>
Subject: [QF-Test] POP3 SSL Handshake Exception with Jython
Message-ID:
	<6AA743AE85CE174B8C70155A9F5A83623D3801@?.com>

Content-Type: text/plain; charset="iso-8859-1"

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.qfs.de/archive/qftest-list/attachments/20130520/5a45e837/attachment.html>

------------------------------

_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list


End of qftest-list Digest, Vol 105, Issue 4
*******************************************