Github user jeking3 commented on the issue:

    https://github.com/apache/thrift/pull/1185
  
    @nsuke something like this seems to work in the ubuntu docker image:
    
    ```
    has_secure_ssl_handshake = 0
    try:
        from OpenSSL.SSL import OP_NO_SSLv3
        has_secure_ssl_handshake = 1
    except ImportError:
        has_secure_ssl_handshake = 0
    
    then later...
    
        # SSL 2.0 and 3.0 are disabled via ssl.OP_NO_SSLv2 and ssl.OP_NO_SSLv3
        if (has_secure_ssl_handshake):
            _default_protocol = ssl.PROTOCOL_SSLv23
        else:
            _default_protocol = ssl.PROTOCOL_TLSv1
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to