For future peoples possibly encountering this same error:

"stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://some.site:443 (Unknown error)

I was getting this on a server that was running PHP 7.1.  Upgrading to 7.3 resolved it.

(I also enabled SSL on the site that the call was being made from – a test site so it didn’t previously have any SSL – but I don’t think that made any difference.)

OpenSSL Error – Failed to enable crypto stream_socket_client(): unable to connect

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)