Skip to content

Cannot connect to TLS enabled servers with pyOpenSSL 26.2.0 #774

@gavtroy

Description

@gavtroy

Connecting to a TLS syncplay server fails with the looping message:

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/syncplay/syncplay/vendor/qt5reactor.py", line 153, in _read
    why = w.doRead()
  File "/usr/lib/python3.14/site-packages/twisted/internet/tcp.py", line 250, in doRead
    return self._dataReceived(data)
  File "/usr/lib/python3.14/site-packages/twisted/internet/tcp.py", line 255, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/usr/lib/python3.14/site-packages/twisted/protocols/tls.py", line 324, in dataReceived
    self._checkHandshakeStatus()
  File "/usr/lib/python3.14/site-packages/twisted/protocols/tls.py", line 255, in _checkHandshakeStatus
    self.wrappedProtocol.handshakeCompleted()
  File "/usr/lib/python3.14/site-packages/twisted/internet/endpoints.py", line 189, in handshakeCompleted
    self._wrappedProtocol.handshakeCompleted()
  File "/usr/lib/syncplay/syncplay/protocols.py", line 405, in handshakeCompleted
    if (self._serverCertificateTLS.get_extension(x).get_short_name() == b'subjectAltName'):
builtins.AttributeError: 'X509' object has no attribute 'get_extension'

To Reproduce

  • With a fully updated Arch install, attempt to connect to syncplay.pl:8999

Version and platform:

  • OS: Arch Linux
  • Syncplay version and build type: syncplay-git 1.7.5.r0.gd1c5f85a-1
  • Media player and version: mpv v0.41.0

Additional context

pyOpenSSL 26.2.0 released a few days ago. The changelog notes:

  • Removed deprecated OpenSSL.crypto.X509Extension, OpenSSL.crypto.X509Req.add_extension, OpenSSL.crypto.X509Req.get_extensions, OpenSSL.crypto.X509.add_extension, OpenSSL.crypto.X509.get_extensions. cryptography.x509 should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions