1828227 Members
2789 Online
109975 Solutions
New Discussion

Re: PHP v4.3 SSL Broken

 
Robert Atkinson
Respected Contributor

PHP v4.3 SSL Broken

I've been chattting with HP, and they seem to have confirmed SSL support in the current VMS version of PHP doesn't work.

This goes back to a known bug in PHP 4.3.x, and can easily be tested using this command :-

$ php


The error returned is :-

php_stream_sock_ssl_activate_with_method: failed to create an SSL context

My question.....is there anybody else out there that's tried to create a PHP application that works over SSL, and if you did, how did you make it work?

Robert.
4 REPLIES 4
David Jones_21
Trusted Contributor

Re: PHP v4.3 SSL Broken

I've just begun trying to include the openssl module in my 4.4.7 port. You are probably getting that error because the module init function was not called (not added to module list perhaps?). If I make the module a builtin module, it still fails because it says the random number generator was not seed. A cursory search shows the only time any PRNG seeding occurs is if you create a certificate.

I'm looking for marbles all day long.
Robert Atkinson
Respected Contributor

Re: PHP v4.3 SSL Broken

David, trying to read between the lines.....does that mean if I create a valid certificate, my 4.3 will work?

Rob.
David Jones_21
Trusted Contributor

Re: PHP v4.3 SSL Broken

"David, trying to read between the lines.....does that mean if I create a valid certificate, my 4.3 will work?"

I wouldn't go that far, the first hurdle is that the openssl module is being initialized at all. What value does extension_loaded('openssl') return?
I'm looking for marbles all day long.
Robert Atkinson
Respected Contributor

Re: PHP v4.3 SSL Broken



bool(true)