This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jramnani
Recipients jramnani
Date 2014-04-14.17:57:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397498268.54.0.53776547909.issue21218@psf.upfronthosting.co.za>
In-reply-to
Content
The unittest, test_ssl.test_default_ecdh_curve, is failing on OS X (and FreeBSD 9).

The test fails with the error message:
"""
======================================================================
ERROR: test_default_ecdh_curve (test.test_ssl.ThreadedTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jramnani/code/cpython/Lib/test/test_ssl.py", line 2596, in test_default_ecdh_curve
    context.set_ciphers("ECDH")
ssl.SSLError: ('No cipher can be selected.',)

----------------------------------------------------------------------
"""

It looks to be related to issue, #21015 (changesets 3b81d1b3f9d1 and 869277faf3dc).


OS Info:
* Version: OS X 10.9.2
* OpenSSL version: OpenSSL 0.9.8y 5 Feb 2013


The problem looks like OpenSSL on OS X is reporting that it has ECDH when it does not.

Python 3.5.0a0 (default:8cf384852680, Apr 14 2014, 13:32:46)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.HAS_ECDH
True
History
Date User Action Args
2014-04-14 17:57:48jramnanisetrecipients: + jramnani
2014-04-14 17:57:48jramnanisetmessageid: <1397498268.54.0.53776547909.issue21218@psf.upfronthosting.co.za>
2014-04-14 17:57:48jramnanilinkissue21218 messages
2014-04-14 17:57:48jramnanicreate