You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may make sense to deviate from the rule and make an exception. If OpenSSL 1.1.1 will come with TLS 1.3 enabled, libraries are going to run into all sorts of trouble. For example if both sides have TLS 1.3 enabled but the library does not enable TLS 1.3 cipher suites, the handshake will prefer TLS 1.3 but fail with no matching ciphers.
With SSL_OP_NO_TLSv1_3 available now, libraries can opt out from TLS 1.3 more easily than getattr(module, 'SSL_OP_NO_TLSv1_3', 0).
This will be landed pretty much the moment 1.1.1 is released anyway (whenever that is). Just to be clear: the risk of not doing this right now is that users consuming an unreleased OpenSSL linked against pyca/cryptography and then consumed via pyOpenSSL will encounter problems if they attempt to communicate with servers that are TLS 1.3 intolerant?
@reaperhulk that's one possible issue. An even less likely issue involves TLS termination devices and firewalls that inspect traffic on higher levels.
The biggest issue are the new TLS 1.3 cipher suites. If an application overrides the default set of cipher suites and does not include TLS 1.3 suites, then handshake between TLS 1.3 enabled servers and clients will fail. It's pretty common to replace OpenSSL's cipher suite selection with a custom list of trusted ciphers.
Applications and libraries like PyOpenSSL and Twisted have to change for TLS 1.3 no matter what. :/
Activity
alex commentedon Apr 29, 2017
We don't generally add bindings until they're in a released version of OpenSSL.
tiran commentedon Apr 29, 2017
It may make sense to deviate from the rule and make an exception. If OpenSSL 1.1.1 will come with TLS 1.3 enabled, libraries are going to run into all sorts of trouble. For example if both sides have TLS 1.3 enabled but the library does not enable TLS 1.3 cipher suites, the handshake will prefer TLS 1.3 but fail with no matching ciphers.
With
SSL_OP_NO_TLSv1_3available now, libraries can opt out from TLS 1.3 more easily thangetattr(module, 'SSL_OP_NO_TLSv1_3', 0).Bind SSL_OP_NO_TLSv1_3 from OpenSSL master (1.1.1)
alex commentedon Apr 30, 2017
They're going to need that anyways, since our bindings don't expose non-existent values.
I'm against making this constant special; if we want to provide a prettier API, it can be at the pyOpenSSL layer, not cryptography.
reaperhulk commentedon Apr 30, 2017
This will be landed pretty much the moment 1.1.1 is released anyway (whenever that is). Just to be clear: the risk of not doing this right now is that users consuming an unreleased OpenSSL linked against pyca/cryptography and then consumed via pyOpenSSL will encounter problems if they attempt to communicate with servers that are TLS 1.3 intolerant?
tiran commentedon May 2, 2017
@reaperhulk that's one possible issue. An even less likely issue involves TLS termination devices and firewalls that inspect traffic on higher levels.
The biggest issue are the new TLS 1.3 cipher suites. If an application overrides the default set of cipher suites and does not include TLS 1.3 suites, then handshake between TLS 1.3 enabled servers and clients will fail. It's pretty common to replace OpenSSL's cipher suite selection with a custom list of trusted ciphers.
Applications and libraries like PyOpenSSL and Twisted have to change for TLS 1.3 no matter what. :/