|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesang (last revision 2015-10-18 22:24 UTC by admin at angosso dot net)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2017-03-17 02:07 UTC] pollita@php.net
-Status: Open
+Status: Feedback
[2017-03-17 02:07 UTC] pollita@php.net
[2017-03-26 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 19:00:01 2025 UTC |
Description: ------------ fsockopen() does not support SSL/TLS with shared OpenSSL extension in domain ssl:// will attempt to negotiate an SSL V2, or SSL V3 connection depending on the capabilities and preferences of the remote host. sslv2:// and sslv3:// will select the SSL V2 or SSL V3 protocol explicitly. The problem the found is caused by the difference between the client/server encryption methods used Test script: --------------- <?php $fp = fsockopen("tls://webmail.example.com", 587, $errno, $errstr); stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT); ?> creating SSL streams (using https://): <?php $context = context_create_stream($context_options) $fp = fopen('https://url', 'r', false, $context); ?> Expected result: ---------------- A successful SSL/TLS connection. SSL/TLS client connection over TCP/IP to connect to the remote host Actual result: -------------- Warning: fsockopen(): Failed to detect socket transport