build-entropy-php icon indicating copy to clipboard operation
build-entropy-php copied to clipboard

how to update openssl

Open saqueib opened this issue 8 years ago • 0 comments

I am not able to use Stripe-PHP library to make calls, its says

Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls.

Please help how can i update my OpenSSL current version shows OpenSSL/0.9.8zd

I have tried using below commands, but no luck

brew install openssl
brew link openssl --force

it did update the OpenSSL but PHP Installation is not picking it, it's showing old version.

here is my install info

PHP 5.6.16 (cli) (built: Nov 27 2015 21:37:15)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

I used this command to install it

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

Also how can I update php 5.6 to 7

Update

I checked the /usr/local/php5/lib/php.ini file and uncommented

extension=php_openssl.dll

but now I am getting

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-
debug-non-zts-20131226/php_openssl.dll' - dlopen(/usr/local/php5/lib/php/extensions/no-debug-
non-zts-20131226/php_openssl.dll, 9): image not found in Unknown on line 0

Thank you guys for this project, it saves a lot time.

saqueib avatar Jul 28 '16 14:07 saqueib