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
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
evaluates to SSLv2 / SSLv3 for 5.5.0 ≤ PHP ≤ 5.6.6 (reference)
evaluates to TLSv1.0 / TLSv1.1 / TLSv1.2 for 5.6.7 ≤ PHP ≤ 7.1.0 (reference)
STREAM_CRYPTO_METHOD_TLS_CLIENT
evaluates to TLSv1.0 / TLSv1.1 / TLSv1.2 for 5.6.0 ≤ PHP ≤ 5.6.6
evaluates to TLSv1.0 for 5.6.7 ≤ PHP ≤ 7.1.0
There are some problems with the current implementation:
the constant values change between different PHP versions, and that leads to portability problems
we allow specifying the version of SSL, but not the version of TLS
we don't have a way to allow any protocol (aka the STREAM_CRYPTO_METHOD_ANY_CLIENT option introduced in PHP 5.6.0, which evaluates to SSLv2 / SSLv3 / TLSv1.0 / TLSv1.1 / TLSv1.2)
So, what about defining the following transports?
ssl to enable sslv2 and sslv3
sslv2 to enable only sslv2
sslv3 to enable only sslv3
tls to enable tlsv1.0 and tlsv1.1 and tlsv1.2
tlsv1.0 to enable only tlsv1.0
tlsv1.1 to enable only tlsv1.1
tlsv1.2 to enable only tlsv1.2
* to enable any kind of connections
Furthermore, because of security issues, more and more websites disable SSL (both SSLv2 and SSLv3), keeping only TLS connections (see for instance what's doing Google).