diff --git a/src/StreamEncryption.php b/src/StreamEncryption.php
index <HASH>..<HASH> 100644
--- a/src/StreamEncryption.php
+++ b/src/StreamEncryption.php
@@ -31,6 +31,10 @@ class StreamEncryption
         // On versions affected by this bug we need to fread the stream until we
         //  get an empty string back because the buffer indicator could be wrong
         $this->wrapSecure = true;
+
+        if (PHP_VERSION_ID >= 50600) {
+            $this->method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
+        }
     }
 
     public function enable(Stream $stream)
Explicitly set supported TLS version for PHP<I>+