June 14th, 2013, 09:40 AM
File_get_contents to SSL 3 URL
Hello. I've tried querying assistance on this but have finally hit a wall and was hoping someone with actual experience in PHP and SSL might be able to point me in the right direction.
I have XAMPP 1.8.1 running on my developer box to test out PHP, and I am running the following code:
In php.ini I have
<?php echo file_get_contents('https://localserver.domain.org'); ?>
When I run the above code, I get the following error:
After speaking with the system admin in charge of localserver, I found out that localserver will only accept SSL 3.0 connections, and OpenSSL appears to be running SSL23 (from what I understand of the above error message). Is there someway to get OpenSSL to use SSL 3 to make the connection?
Here is my Apache Version from my phpinfo():
localserver.domain.org is an Oracle Weblogic server.
June 17th, 2013, 07:13 AM
Does anybody have any insight into this problem? Or rather, does anybody have any insight into where I am misinterpreting this problem, if applicable?
June 25th, 2013, 08:54 AM
Okay, I finally found the answer to this, at least by using cURL:
That forces it to use SSL 3, then I just need to get it to accept the certificate.
January 9th, 2015, 12:28 PM
Where put that?